diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-18 17:46:28 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-18 17:46:28 -0700 |
commit | fad1f05203f9c45b759fd0f4731e9025bca86114 (patch) | |
tree | be8834ef7c31c534ea7b48cb73879fdb4690f47e /modules/gallery/libraries/drivers | |
parent | a1b1d323af458958c9e06c8160bffb97882b8d41 (diff) |
The Kohana folks removed the cache cleanup code back in
http://dev.kohanaframework.org/projects/kohana2/repository/revisions/4605
So now our cache entries don't expire. For now, do cache expiration
whenever we render Admin > Maintenance, since that's the type of place
that users will go when they want their cache to expire anyway.
Diffstat (limited to 'modules/gallery/libraries/drivers')
-rw-r--r-- | modules/gallery/libraries/drivers/Cache/Database.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/gallery/libraries/drivers/Cache/Database.php b/modules/gallery/libraries/drivers/Cache/Database.php index 9ada52e1..b7822811 100644 --- a/modules/gallery/libraries/drivers/Cache/Database.php +++ b/modules/gallery/libraries/drivers/Cache/Database.php @@ -179,20 +179,6 @@ class Cache_Database_Driver extends Cache_Driver { } /** - * Deletes all cache files that are older than the current time. - */ - public function delete_expired() { - // Delete all expired caches - $status = db::build() - ->delete("caches") - ->where("expiration", "<>", 0) - ->where("expiration", "<=", time()) - ->execute(); - - return count($status) > 0; - } - - /** * Empty the cache */ public function delete_all() { |