Jump to content

Clear cache with expire argument


lpa
 Share

Recommended Posts

In one use case we have a normal cache like this

$local_data = $cache->get('calendar', $c, function() { }

With PW 3.0.184 setting expire argument ($c) to -1 the cache was cleared. Now it does not work and trying to set expire argument to 0, we get '0000-00-00 00:00:00' in the database expire field instead of some valid date. 

What is the correct way to expire the cache by setting the expire argument OR should we always use $cache->delete('calendar') to expire now?
 

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...