Jump to content

cache


aopon
 Share

Recommended Posts

Hi,
sorry for my English. I fight a little bit with cache in prestashop, could you tell me how do you deal with:

- clearing cache after changing date in admin panel?

- though cache turned on prestashop doesnt't check it, it sends sql queries, transform data and finally gets content from cache file. Do you use smarty's is_cached method to check it or any other solution?

- how do you deal with areas that should not be cached?

Here are some solutions tha I use

- I add cache id to smarty's display method. I think that in multilanguage shops there is a need to add lang id also to cache id.

- in postProcess methods in admin files I add clear_cache for a cache id

- I don't know why but in some modules clear_cache doesn't work so I added a boolean system variable which becomes true if a content in admin is changed. Then in smarty.inc.php I check this variable and when it is true then i set force_recompile to true and set the variable to false

I would be grateful for Your comment

Andrzej

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
 Share

×
×
  • Create New...

Important Information

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