From 1ded4f2f53057a34a130c8a0952429ac0c08389b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Dec 2022 21:39:37 +0300 Subject: use DiskCache::instance method --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3