Jump to content
thirty bees forum
  • 0

Smaty cache takes too much SSD space for some modules


vsn

Question

Hi there, by analyzing space problems on my SSD hosting I found out that smary cache for two modules take almost 0,5 GB (...cache/smarty/cache). They are crosselling and productcategory. The folders are full with single directories and files. Why they are so huge? Any possibility to turn off smarty cache for this particular ones?

Thanks!

Sergey

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Ok, understood. How can I deactivate smarty cache for this module? Is it sufficient to add $smarty->caching = false to the respective template file? Or is there another place to control cache per module (I just want to deactivate cache for only this one module). Thanks!

Link to comment
Share on other sites

  • 0

If you really want to disable caching, then one would replace

return $this->display(__FILE__, 'productscategory.tpl', $this->getCacheId($cache_id));

with

return $this->display(__FILE__, 'productscategory.tpl');

Trick is to remove cache_id from display and it will not write caches. Do it in all places where you want to disable caches.

After doing so check if shop did not slow down.

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