diff options
author | Andrew Dolgov <[email protected]> | 2022-12-19 21:39:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-12-19 21:39:37 +0300 |
commit | 1ded4f2f53057a34a130c8a0952429ac0c08389b (patch) | |
tree | cb6c920a919c100be30f76cee912f6b936afb01f | |
parent | b5f39be5bcfdeb07a01661b98d1be5b1bd5769f3 (diff) |
use DiskCache::instance method
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |