static function ContentCacheFile(FrontendModule $module)
    {
        $file = $module->Content()->GetID();
        $cacheKey = $module->CacheKey();
        if ($cacheKey)
        {
            if (!ctype_alnum($cacheKey))
            {
                throw new \Exception(Trans('Core.CacheKey.Error.NotAlphaNumeric'));
            }
            $file .= '-' . $cacheKey;
        }
        $cacheFolder = Path::Combine(PHINE_PATH, 'App/Phine/Cache/Content');
        return Path::AddExtension(Path::Combine($cacheFolder, $file), 'phtml');
    }
static function ContentCacheFile(FrontendModule $module)
    {
        $file = $module->Content()->GetID();
        $cacheKey = $module->CacheKey();
        if ($cacheKey)
        {
            if (!ctype_alnum($cacheKey))
            {
                throw new \Exception(Trans('Core.CacheKey.Error.NotAlphaNumeric'));
            }
            $file .= '-' . $cacheKey;
        }
        $cacheFolder = Path::Combine(PHINE_PATH, 'App/Phine/Cache/Content');
        return Path::AddExtension(Path::Combine($cacheFolder, $file), 'phtml');
    }
static function ContentCacheFile ( FrontendModule $ module ) { $ file = $ module -> Content ( ) -> GetID ( ) ; $ cacheKey = $ module -> CacheKey ( ) ; if ( $ cacheKey ) { if ( ! ctype_alnum ( $ cacheKey ) ) { throw new \ Exception ( Trans ( 'Core.CacheKey.Error.NotAlphaNumeric' ) ) ; } $ file .= '-' . $ cacheKey ; } $ cacheFolder = Path :: Combine ( PHINE_PATH , 'App/Phine/Cache/Content' ) ; return Path :: AddExtension ( Path :: Combine ( $ cacheFolder , $ file ) , 'phtml' ) ; }
The name of the cache file
@param FrontendModule $module
@return string The name of the cache file, it needn't exist yet
@throws \Exception Raises an error in case the cache key is not alphanumeric
The name of the cache file