Jump to content

prestashop Cache::store($key) does not save anything


Recommended Posts

Hi community.

I am trying to use this Cache::store($key, $value) method in order to save some data for later use. I failed. I also enabled the cache in BO and again failed. I tracked the debugger and this method Cache::isStored($key) returns false in first call during the runtime process. Then in the middle of runtime after calling Cache::store($key, $value) then Cache::isStored($key) returns true and the value is saved properly. But when the process ends it gets deleted. Why? Any idea how to use cache in prestashop?

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