Classes/Utility/FrontendUtility.php
public static function isCacheable($conf = null)
    {
        $TSFE = self::getTsfe();

        if ($_SERVER['REQUEST_METHOD'] !== 'GET' || !empty($TSFE->fe_user->user['uid'])) {
            return false;
        }

        // don't parse if page is not cacheable
        if (empty($conf['allowNoStaticCachable']) && !$TSFE->isStaticCacheble()) {
            return false;
        }

        // Skip no_cache-pages
        if (empty($conf['allowNoCache']) && !empty($TSFE->no_cache)) {
            return false;
        }

        return true;
    }
public static function isCacheable($conf = null)
    {
        $TSFE = self::getTsfe();

        if ($_SERVER['REQUEST_METHOD'] !== 'GET' || !empty($TSFE->fe_user->user['uid'])) {
            return false;
        }

        // don't parse if page is not cacheable
        if (empty($conf['allowNoStaticCachable']) && !$TSFE->isStaticCacheble()) {
            return false;
        }

        // Skip no_cache-pages
        if (empty($conf['allowNoCache']) && !empty($TSFE->no_cache)) {
            return false;
        }

        return true;
    }
public static function isCacheable ( $ conf = null ) { $ TSFE = self :: getTsfe ( ) ; if ( $ _SERVER [ 'REQUEST_METHOD' ] !== 'GET' || ! empty ( $ TSFE -> fe_user -> user [ 'uid' ] ) ) { return false ; } // don't parse if page is not cacheable if ( empty ( $ conf [ 'allowNoStaticCachable' ] ) && ! $ TSFE -> isStaticCacheble ( ) ) { return false ; } // Skip no_cache-pages if ( empty ( $ conf [ 'allowNoCache' ] ) && ! empty ( $ TSFE -> no_cache ) ) { return false ; } return true ; }
Check if frontend page is cacheable

@param array|null $conf Configuration
@return bool
Check if frontend page is cacheable