Jump to content

Desactivar cache para un determinado módulo


Recommended Posts

Por ejemplo, imaginemos que usas el blockadvertising y tenemos este codigo:

public function hookRightColumn($params)
	{
		if (!$this->isCached('blockadvertising.tpl', $this->getCacheId()))
			$this->smarty->assign(
				array(
					'image' => $this->context->link->protocol_content.$this->adv_img,
					'adv_link' => $this->adv_link,
					'adv_title' => $this->adv_title,
				)
			);
		return $this->display(__FILE__, 'blockadvertising.tpl', $this->getCacheId());
	}

Creo que si lo dejamos asi:

public function hookRightColumn($params)
	{
		
			$this->smarty->assign(
				array(
					'image' => $this->context->link->protocol_content.$this->adv_img,
					'adv_link' => $this->adv_link,
					'adv_title' => $this->adv_title,
				)
			);
		return $this->display(__FILE__, 'blockadvertising.tpl');
	}

Trabajariamos sin la cache de smarty en ese modulo.

 

Ahora mismo no estoy seguro.., porque estoy en el movil...

Link to comment
Share on other sites

  • 1 month later...
  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...