Jump to content

Cache invalidation mechanism


mdiniz

Recommended Posts

Hi there

 

I'm checking how the caching mechanism works in Prestashop (1.5.3.1). So far I understand that it's based on the SQL queries: the query feeds a md5 function that is used as a key in the cache. There is also a delete function that removes entries from the cache. So far so good.

 

However, I don't see any mechanism (in the models, controllers, anywhere) that removes entries from the cache. For instance, once a product is updated, the cache entry related to it must be expired, or the data will be out of sync. I see the class Db and some modules using delete, but I would expect a much more comprehensive cache invalidation mechanism.

 

Am I missing anything? Could anyone please explain how the cache invalidation mechanism work?

 

Thank you

Marcelo

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