-
Notifications
You must be signed in to change notification settings - Fork 76
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
[question] how to define time how long should the cache live? #117
Comments
@str You can set time like this. new PrivateCacheStrategy(
new FlysystemStorage(
new Local('./tmp/cache/guzzle/')
), 60 // <= 60 seconds
) Although my experience was, if the server doesn't return proper caching headers (for how long content is cache-able), then nothing really happens (beside a file being written, the network access happens anyway). You can force caching with
Hope that helps someone, please correct me if I'm wrong. |
Hi!
It looks like my cache lasts for a very short time. This is how I define my cache middleware:
how can I define how long my cache should last? Like in days?
The text was updated successfully, but these errors were encountered: