Comment to 'Caching Page Blocks'
  • Hello Scholar !

    1. Pages cache stores the records from the pages and page blocks tables to reduce the refers to the database.

    2. Strange case, but you may disable the CSS and JS caches via Studio->Settings>Cache area.

    3. No, only via editing the core code.

    • Thanks LeonidS . Which class deals with page caching? and which methods determine the data to be cached?

      • You may find an example in the public function getCode () of template\scripts\BxBasePage.php class:

        $oCache = $this->_getPageCacheObject();

                    $sKey = $this->_getPageCacheKey();

                    $mixedRet = $oCache->getData($sKey, $this->_aObject['cache_lifetime']);

                    if ($mixedRet !== null) {

                        $sPageCode = $mixedRet;

                    } else {

                        $sPageCode = $this->_getPageCode();

                        $oCache->setData($sKey, $sPageCode, $this->_aObject['cache_lifetime']);

                    }