summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-19 21:39:24 +0300
committerAndrew Dolgov <[email protected]>2022-12-19 21:39:24 +0300
commitf270e48b2f5b40045e2caeca16fd3be95728927f (patch)
tree9703af729fa38b1b084e5db946a1246faa01ad94
parentba2ba37c2445ed60cf8ee473dd21bfdc27f44e77 (diff)
use DiskCache::instance method
-rwxr-xr-xinit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index ddbab9c..dc7a658 100755
--- a/init.php
+++ b/init.php
@@ -54,7 +54,7 @@ class Af_Img_Phash extends Plugin {
function init($host) {
$this->host = $host;
- $this->cache = new DiskCache("images");
+ $this->cache = DiskCache::instance("images");
Config::add("IMG_HASH_SQL_FUNCTION", "");