… since it isn't used.
* @package com.woltlab.wcf
* @subpackage system.cache.builder
* @category Community Framework
+ * @deprecated since 2.1
*/
class TemplateListenerCacheBuilder extends AbstractCacheBuilder {
/**
use wcf\data\package\PackageEditor;
use wcf\system\application\ApplicationHandler;
use wcf\data\object\type\ObjectTypeCache;
-use wcf\system\cache\builder\TemplateListenerCacheBuilder;
use wcf\system\cache\builder\TemplateListenerCodeCacheBuilder;
use wcf\system\cache\CacheHandler;
use wcf\system\database\statement\PreparedStatement;
}
// remove template listener cache
- TemplateListenerCacheBuilder::getInstance()->reset();
TemplateListenerCodeCacheBuilder::getInstance()->reset();
-
+
// reset language cache
LanguageFactory::getInstance()->clearCache();
LanguageFactory::getInstance()->deleteLanguageCache();
<?php
namespace wcf\system\package\plugin;
-use wcf\system\cache\builder\TemplateListenerCacheBuilder;
use wcf\system\cache\builder\TemplateListenerCodeCacheBuilder;
use wcf\system\WCF;
*/
protected function cleanup() {
// clear cache immediately
- TemplateListenerCacheBuilder::getInstance()->reset();
TemplateListenerCodeCacheBuilder::getInstance()->reset();
}
}
public function getMetaDataFilename($templateName) {
return $this->compileDir.'setup/template/compiled/'.$this->languageID.'_'.$templateName.'.meta.php';
}
-
- /**
- * @see \wcf\system\template\TemplateEngine::loadTemplateListeners()
- */
- protected function loadTemplateListeners() {
- // template isteners are not available during setup
- }
}
<?php
namespace wcf\system\template;
use wcf\system\cache\builder\TemplateGroupCacheBuilder;
-use wcf\system\cache\builder\TemplateListenerCacheBuilder;
use wcf\system\cache\builder\TemplateListenerCodeCacheBuilder;
use wcf\system\event\EventHandler;
use wcf\system\exception\SystemException;
/**
* Loads all available template listeners.
+ *
+ * @deprecated since 2.1
*/
protected function loadTemplateListeners() {
- $this->templateListeners = TemplateListenerCacheBuilder::getInstance()->getData(array('environment' => $this->environment));
+ // does nothing
}
/**