Backend\Core\Engine\Model::invalidateFrontendCache PHP Méthode

invalidateFrontendCache() public static méthode

Deprecation: : twig doesn't contain this same type of caching out of the box. Use https://github.com/asm89/twig-cache-extension instead
public static invalidateFrontendCache ( string $module = null, string $language = null )
$module string A specific module to clear the cache for.
$language string The language to use.
    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);
    }

Usage Example

Exemple #1
0
 /**
  * @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']));
 }
All Usage Examples Of Backend\Core\Engine\Model::invalidateFrontendCache