summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-08-10 00:16:55 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-08-10 00:16:55 +0200
commitf0dd547bd84b4461cdab8d7d556bdb275bf4864a (patch)
tree3e334f1c812488af3b4d4ddc638b1b29c19c3972 /application/models
parentdeb442de494680114fcbafa824689b00b5e2b2e0 (diff)
Increase thumbnail cache ttl
Also try to clean up when files are deleted since 1 month is a rather long time. Granted, thumbnails are small, but whatever Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/mfile.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index 5139a2eee..ea81ee32d 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -251,6 +251,7 @@ class Mfile extends CI_Model {
rmdir($dir);
}
}
+ delete_cache("${data_id}_thumb_150");
}
public function get_owner($id)