Jump to content

Smarty cache trick


alocin

Recommended Posts

While developing your theme you need to force Smarty to recompile in order to see the changes but this makes browsing your site very slow and when you develop you don't want to waste your time waiting for the pages to load so what I did is let Smarty optimized and then run a little script when I need to empty Smarty cache. The script is like this for Windows and can be easily modified for Linux:

cd x:\your_prestashop_root\tools\smarty
del /Q cache\*.*
del /Q compile\*.*



I saved it as empty_cache.bat and placed the icon on Windows speed bar so when I need to empty the cache all I need is just a click. And remember that you don't need to empty the cache when you modify just the CSS.

My 2c to the community.

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