I use the Magento cache block for the top navigation block. The problem is that the block must generate some URLs for files in the skins directory that cannot be placed in css files, since the file names depend on the model model data.
Now, when I open magento using a secure connection (https: //), the navigation block is removed from the cache and sent to the browser, but with the http: // URLs, which leads to a warning in most browsers about insecure elements on the page.
I would like to have separate caches for secure and insecure connections. The navigation block extends the Mage_Catalog_Block_Navigation class and therefore has the following cache configuration:
$this->addData(array( 'cache_lifetime' => false, 'cache_tags' => array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Core_Model_Store_Group::CACHE_TAG), ));
magento
Uwe mesecke
source share