summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-19 21:39:37 +0300
committerAndrew Dolgov <[email protected]>2022-12-19 21:39:37 +0300
commit1ded4f2f53057a34a130c8a0952429ac0c08389b (patch)
treecb6c920a919c100be30f76cee912f6b936afb01f
parentb5f39be5bcfdeb07a01661b98d1be5b1bd5769f3 (diff)
use DiskCache::instance method
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 7b291db..64ba048 100644
--- a/init.php
+++ b/init.php
@@ -28,7 +28,7 @@ class Api_Resize_Media extends Plugin {
function init($host) {
$this->host = $host;
- $this->cache = new DiskCache("images");
+ $this->cache = DiskCache::instance("images");
$host->add_hook($host::HOOK_RENDER_ARTICLE_API, $this, 999);
$host->add_hook($host::HOOK_ARTICLE_IMAGE, $this, 999);