Jump to content

Blocktopmenu getCahceId method


szanaszabolcs

Recommended Posts

Hi,

 

I would like to add a prarameter to blocktopmenu getCacheId() method.

Which includes that the user is logged in or not and i see the value in the blocktopmenu.tpl template file.

So i want a variable like {$logged} but the cache don't save the value.

 

this is the method:

  protected function getCacheId($name = null)
    {

        $page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';
        return parent::getCacheId().'|'.$page_name.($page_name != 'index' ? '|'.(int)Tools::getValue('id_'.$page_name) : '');
    }
Edited by szanaszabolcs (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...