Example #1
0
 /**
  * Delete the compiled stylesheet files. The files will get recompiled
  * when user visit one of the associated pages.
  * 
  * @see	\wcf\data\IEditableCachedObject::resetCache()
  */
 public static function resetCache()
 {
     $stylesheets = glob(CMS_DIR . 'style/style-*.css');
     if ($stylesheets !== false) {
         foreach ($stylesheets as $stylesheet) {
             @unlink($stylesheet);
         }
     }
     StylesheetCacheBuilder::getInstance()->reset();
 }
Example #2
0
 /**
  * @see	\wcf\system\SingletonFactory::init()
  */
 protected function init()
 {
     $this->stylesheets = StylesheetCacheBuilder::getInstance()->getData();
 }