public static function invalidateFrontendCache($module = null, $language = null) { trigger_error('invalidateFrontendCache is deprecated since twig does not use the same caching mechanisme. You can use https://github.com/asm89/twig-cache-extension if you want a similar type of template cache.', E_USER_DEPRECATED); }
/** * @param array $item * @return int */ public static function updateVideo(array $item) { BackendModel::invalidateFrontendCache('productsCache'); return (int) BackendModel::getContainer()->get('database')->update('catalog_videos', $item, 'id = ?', array($item['id'])); }