-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileCache not expiring #11759
Comments
Hmm I've checked out the I think that setting a lifetime of 5 seconds for example while saving should invalidate (delete) that cache if accessed after these 5 seconds, otherwise the Do you think that instead of saving the raw content passed to ['created' => time(), 'lifetime' => $lifetime, 'content' => $content] is a good idea? It will solve the problem described above and the If you didn't, I believe the documentation should explicitly explain that |
@stratoss Could you please create PR for 2.0.x branch? Note, test coverage of this changes is mandatory. |
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues |
Here is the sample code:
then
After a while
$resetAfter
becomes negative, and$cache->exists($cacheName)
still returns the value...edit: not touched the file for > 3600 seconds, and the file is still there. Looks like a bug for me.
The text was updated successfully, but these errors were encountered: