From: Matthias Schmidt Date: Wed, 16 Jun 2021 12:20:56 +0000 (+0200) Subject: Delete `TemplateListenerCacheBuilder` (#4297) X-Git-Tag: 5.5.0_Alpha_1~637 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73f7c01effcd09fb7a802fdc1164f7caaae10d34;p=GitHub%2FWoltLab%2FWCF.git Delete `TemplateListenerCacheBuilder` (#4297) --- diff --git a/com.woltlab.wcf/fileDelete.xml b/com.woltlab.wcf/fileDelete.xml index 62c5ad9250..8e68069e70 100644 --- a/com.woltlab.wcf/fileDelete.xml +++ b/com.woltlab.wcf/fileDelete.xml @@ -1773,6 +1773,7 @@ lib/system/cache/builder/PageMenuCacheBuilder.class.php lib/system/cache/builder/SitemapCacheBuilder.class.php lib/system/cache/builder/TemplateCacheBuilder.class.php + lib/system/cache/builder/TemplateListenerCacheBuilder.class.php lib/system/cache/builder/VersionCacheBuilder.class.php lib/system/cache/source/ApcCacheSource.class.php lib/system/cache/source/MemcacheAdapter.class.php diff --git a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php deleted file mode 100644 index af4fa212d7..0000000000 --- a/wcfsetup/install/files/lib/system/cache/builder/TemplateListenerCacheBuilder.class.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @package WoltLabSuite\Core\System\Cache\Builder - * @deprecated 2.1 - */ -class TemplateListenerCacheBuilder extends AbstractCacheBuilder -{ - /** - * @inheritDoc - */ - public function rebuild(array $parameters) - { - // get templates for current package id - $templateListenerList = new TemplateListenerList(); - $templateListenerList->getConditionBuilder()->add( - "template_listener.environment = ?", - [$parameters['environment']] - ); - $templateListenerList->sqlOrderBy = "template_listener.listenerID ASC"; - $templateListenerList->readObjects(); - - $data = []; - foreach ($templateListenerList->getObjects() as $templateListener) { - $data[$templateListener->templateName] = []; - } - - return $data; - } -}