Classes/Cache/Rule/SiteCacheable.php
public function checkRule(TypoScriptFrontendController $frontendController, string $uri, array &$explanation, bool &$skipProcessing)
    {
        if (!($GLOBALS['TYPO3_REQUEST'] instanceof \TYPO3\CMS\Core\Http\ServerRequest)) {
            return;
        }
        $site = $GLOBALS['TYPO3_REQUEST']->getAttribute('site');
        if (!($site instanceof \TYPO3\CMS\Core\Site\Entity\Site)) {
            return;
        }
        $config = $site->getConfiguration();
        if (isset($config['disableStaticFileCache']) && $config['disableStaticFileCache']) {
            $explanation[__CLASS__] = 'static cache disabled on site configuration: ' . $site->getIdentifier();
        }
    }
public function checkRule(TypoScriptFrontendController $frontendController, string $uri, array &$explanation, bool &$skipProcessing)
    {
        if (!($GLOBALS['TYPO3_REQUEST'] instanceof \TYPO3\CMS\Core\Http\ServerRequest)) {
            return;
        }
        $site = $GLOBALS['TYPO3_REQUEST']->getAttribute('site');
        if (!($site instanceof \TYPO3\CMS\Core\Site\Entity\Site)) {
            return;
        }
        $config = $site->getConfiguration();
        if (isset($config['disableStaticFileCache']) && $config['disableStaticFileCache']) {
            $explanation[__CLASS__] = 'static cache disabled on site configuration: ' . $site->getIdentifier();
        }
    }
public function checkRule ( TypoScriptFrontendController $ frontendController , string $ uri , array & $ explanation , bool & $ skipProcessing ) { if ( ! ( $ GLOBALS [ 'TYPO3_REQUEST' ] instanceof \ TYPO3 \ CMS \ Core \ Http \ ServerRequest ) ) { return ; } $ site = $ GLOBALS [ 'TYPO3_REQUEST' ] -> getAttribute ( 'site' ) ; if ( ! ( $ site instanceof \ TYPO3 \ CMS \ Core \ Site \ Entity \ Site ) ) { return ; } $ config = $ site -> getConfiguration ( ) ; if ( isset ( $ config [ 'disableStaticFileCache' ] ) && $ config [ 'disableStaticFileCache' ] ) { $ explanation [ __CLASS__ ] = 'static cache disabled on site configuration: ' . $ site -> getIdentifier ( ) ; } }
Check if the current site is static cacheable.

@param TypoScriptFrontendController $frontendController
@param string                       $uri
@param array                        $explanation
@param bool                         $skipProcessing
Check if the current site is static cacheable .