From d16e1cb554fff3e7ed4102af79241c5ad9a8b3e7 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 9 Aug 2011 10:44:28 +0200 Subject: [PATCH] Fixed resetCache()-method --- wcfsetup/install/files/lib/data/style/StyleEditor.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index bbcdd938e2..339aa95e4e 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -4,6 +4,7 @@ use wcf\data\template\group\TemplateGroupEditor; use wcf\data\template\TemplateEditor; use wcf\data\DatabaseObjectEditor; use wcf\data\IEditableCachedObject; +use wcf\system\cache\CacheHandler; use wcf\system\exception\SystemException; use wcf\system\image\Thumbnail; use wcf\system\io\File; @@ -849,7 +850,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject * @see wcf\data\IEditableCachedObject::resetCache() */ public static function resetCache() { - WCF::getCache()->clear(WCF_DIR.'cache', 'cache.icon-*-'.$this->styleID.'.php'); + CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.icon-*-*.php'); } /** -- 2.20.1