RainLab\Pages\Classes\Snippet::clearMapCache PHP Method

clearMapCache() public static method

Clears the snippet map item cache
public static clearMapCache ( Cms\Classes\Theme $theme )
$theme Cms\Classes\Theme Specifies the current theme.
    public static function clearMapCache($theme)
    {
        Cache::forget(self::getMapCacheKey($theme));
    }

Usage Example

Example #1
0
 /**
  * Clears front-end run-time cache.
  * @param \Cms\Classes\Theme $theme Specifies a parent theme.
  */
 public static function clearCache($theme)
 {
     Cache::forget(self::getPartialMapCacheKey($theme));
     Snippet::clearMapCache($theme);
 }