From: Matthias Schmidt Date: Tue, 9 Aug 2011 08:44:28 +0000 (+0200) Subject: Fixed resetCache()-method X-Git-Tag: 2.0.0_Beta_1~1900^2~1^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d16e1cb554fff3e7ed4102af79241c5ad9a8b3e7;p=GitHub%2FWoltLab%2FWCF.git Fixed resetCache()-method --- 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'); } /**