diff options
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r-- | engine/lib/api.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php index 4ca9e208c..198f3efb0 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -237,6 +237,28 @@ } /** + * Invalidate a given key. + * + * @param string $key + * @return bool + */ + public function delete($key) + { + global $CONFIG; + + $key = sanitise_string($key); + + return delete_data("DELETE from {$CONFIG->dbprefix}hmac_cache where hmac='$key'"); + } + + /** + * Clear out all the contents of the cache. + * + * Not currently implemented in this cache type. + */ + public function clear() { return true; } + + /** * Clean out old stuff. * */
|