Skip to content
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

Check if cache file exists before unlinking into delete method #4

Closed
DivineOmega opened this issue Nov 25, 2015 · 0 comments
Closed

Comments

@DivineOmega
Copy link
Member

When calling delete($cache_key) on a cache key that does not exist, this can throw a PHP warning.

The unlink should first check if the file exists. If so, delete it and return true, else return false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant