Jump to content

Gestion de cache par modules


Recommended Posts

Bonjour.

 

En test local sur une 1.5 multiboutique, je teste la possibilité de mettre en cache nos modules perso.

J'ai testé sans réussite : 

// ID du magasin
$id_shop = (int)$this->context->shop->id;

$smarty->caching = 2; // régler la durée de vie individuellement
$smarty->cache_lifetime = 30; // 30 secondes
echo $smarty->cache_lifetime.'<br />';
if (!$this->isCached('test.tpl', $this->getCacheId()))
{
    echo 'test ok<br />';
}	
$display = $this->display(__FILE__, 'test.tpl', $this->getCacheId());
return $display;

Avez vous une idée d'où cela peut il venir ?

 

Merci par avance.

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...