public static function loadCached($theme, $fileName)
    {
        return static::inTheme($theme)
            ->remember(Config::get('cms.parsedPageCacheTTL', 1440))
            ->find($fileName)
        ;
    }
public static function loadCached($theme, $fileName)
    {
        return static::inTheme($theme)
            ->remember(Config::get('cms.parsedPageCacheTTL', 1440))
            ->find($fileName)
        ;
    }
public static function loadCached ( $ theme , $ fileName ) { return static :: inTheme ( $ theme ) -> remember ( Config :: get ( 'cms.parsedPageCacheTTL' , 1440 ) ) -> find ( $ fileName ) ; }
Loads the object from a cache.
This method is used by the CMS in the runtime. If the cache is not found, it is created.
@param \Cms\Classes\Theme $theme Specifies the theme the object belongs to.
@param string $fileName Specifies the file name, with the extension.
@return mixed Returns a CMS object instance or null if the object wasn't found.
Loads the object from a cache . This method is used by the CMS in the runtime . If the cache is not found it is created .