Jump to content
Sign in to follow this  

Gestion de cache par modules

Recommended Posts



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.

Share this post

Link to post
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
Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More