Option to set the cache lifetime
See original GitHub issueCaches that are not accessed within the last week will also be evicted.
Along with the usual usage of this package I also use it to only conditionally release my library. For this I cache a version file (Which is automatically bumped on release and contains only the version number) so this action can tell me when it’s changed, because of the hashed keys.
This solution has been really useful and easy to set up, but now a week has passed and I now understand why this job fails.
If for this cache only I could set the lifetime to infinite my problem would be solved.
(Another option would be useful to not litter the cache with these little version files is a maxCaches
option, I don’t know if there is an option for that)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Cache-Control - HTTP - MDN Web Docs
The Cache-Control HTTP header field holds directives ... the browser cache would deduct 100 seconds from its freshness lifetime.
Read more >Setting a Cache Expiry Time | CDN Static - CDNsun
The Cache Expiry Time option of both Static and Static Push CDN services allows you to control cache system on our CDN edge...
Read more >Managing page cache lifetime (TTL) - WordPress.org
As I understand W3TC allows to set lifetime for page cache (server side cache) with option “Expires header lifetime” in HTML-section of Browser...
Read more >[EX/QFX] Understanding the SNMP stats-cache-lifetime option
Note: stats-cache-lifetime is a hidden option. Manually type full keyword to complete the configuration. Run the following script on the SNMP ...
Read more >Caching - Akamai TechDocs
If you selected Allow caching,, 1. From the Cache lifetime menu, select the option for the maximum lifetime of cached objects. This determines...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I actually started a side project during a company hackathon last week that gives users more freedom in how they store and manage files. It has a “time to live” field that would do exactly what you are asking for. It still needs some work, especially on the AWS S3 side, so I wouldn’t recommend it just yet. But it’s open for contributions - https://github.com/dhadka/stockpile
@AlexAegis @pbrezina Closing this. This seems like a feature request which currently is not in near scope.