mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.26k stars 215 forks source link

What is cacheCooldownSecounds definition? #438

Closed joe820912boy closed 1 year ago

joe820912boy commented 1 year ago

Could I confirm that what is "cacheCooldownSecounds" means?

e.g. $cacheCooldownSecounds = 300;

1) Is it that means that the every 300s that we could see that a new one cache dir in "storage/framework/cache/data/"? Or 2) every 300s the cache model will clear the cache dir in "storage/framework/cache/data/"?

In my opinion, I prefer the second one because I see the stacktrace that I find that if the time execeed tha cooldownseconds that we will flush the data.

If there exists any misleading please let me know and correct it. Thanks!

joe820912boy commented 1 year ago

I have seen the definition of cacheCooldown in

312

I think that I know the definition of cacheCooldownSeconds, and will close this issue