/** * Execute certain hook handler * * @return void */ public function executeHookHandler() { // Delete old and rename new if (\Includes\Decorator\Utils\CacheManager::isCapsular()) { \XLite\Model\ViewList::setVersionKey(null); $repo = \XLite\Core\Database::getRepo('XLite\\Model\\ViewList'); $key = \Includes\Decorator\Utils\CacheManager::getKey(); $repo->deleteObsolete($key); $repo->markCurrentVersion($key); } }