src/services/HtmlcacheService.php
private function isPathExcluded()
    {
        // determine currently requested URL path and the multi-site ID
        $requestedPath = \Craft::$app->request->getFullPath();
        $requestedSiteId = \Craft::$app->getSites()->getCurrentSite()->id;

        // compare with excluded paths and sites from the settings
        if (!empty($this->settings->excludedUrlPaths)) {
            foreach ($this->settings->excludedUrlPaths as $exclude) {
                $path = reset($exclude);
                $siteId = intval(next($exclude));

                // check if requested path is one of those of the settings
                if ($requestedPath == $path || preg_match('@' . $path . '@', $requestedPath)) {
                    // and if requested site either corresponds to the exclude setting or if it's unimportant at all
                    if ($requestedSiteId == $siteId || $siteId < 0) {
                        return true;
                    }
                }
            }
        }

        return false;
    }
private function isPathExcluded()
    {
        // determine currently requested URL path and the multi-site ID
        $requestedPath = \Craft::$app->request->getFullPath();
        $requestedSiteId = \Craft::$app->getSites()->getCurrentSite()->id;

        // compare with excluded paths and sites from the settings
        if (!empty($this->settings->excludedUrlPaths)) {
            foreach ($this->settings->excludedUrlPaths as $exclude) {
                $path = reset($exclude);
                $siteId = intval(next($exclude));

                // check if requested path is one of those of the settings
                if ($requestedPath == $path || preg_match('@' . $path . '@', $requestedPath)) {
                    // and if requested site either corresponds to the exclude setting or if it's unimportant at all
                    if ($requestedSiteId == $siteId || $siteId < 0) {
                        return true;
                    }
                }
            }
        }

        return false;
    }
private function isPathExcluded ( ) { // determine currently requested URL path and the multi-site ID
 $ requestedPath = \ Craft :: $ app -> request -> getFullPath ( ) ; $ requestedSiteId = \ Craft :: $ app -> getSites ( ) -> getCurrentSite ( ) -> id ; // compare with excluded paths and sites from the settings
 if ( ! empty ( $ this -> settings -> excludedUrlPaths ) ) { foreach ( $ this -> settings -> excludedUrlPaths as $ exclude ) { $ path = reset ( $ exclude ) ; $ siteId = intval ( next ( $ exclude ) ) ; // check if requested path is one of those of the settings
 if ( $ requestedPath == $ path || preg_match ( '@' . $ path . '@' , $ requestedPath ) ) { // and if requested site either corresponds to the exclude setting or if it's unimportant at all
 if ( $ requestedSiteId == $ siteId || $ siteId < 0 ) { return true ; } } } } return false ; }
Check if currently requested URL path has been added to list of excluded paths

@return bool
Check if currently requested URL path has been added to list of excluded paths