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

Increase CloudFlare cache times? #31

Open
erkyrath opened this issue Feb 22, 2024 · 2 comments
Open

Increase CloudFlare cache times? #31

erkyrath opened this issue Feb 22, 2024 · 2 comments

Comments

@erkyrath
Copy link
Member

(Not actually an issue with this repo, but I have to file it somewhere.)

We get 40-50% cache coverage from CloudFlare. We can probably improve that by turning up the cache lifetime.

I originally tried to balance the cache lifetime against the problem of old cache data lingering after a file was replaced. But now the admin tool has a "clear cache" button so this problem is much reduced.

Footnote: should we also add index pages to the cache now? (With a shorter lifetime, say 24 hours.) It would be fairly simple to cache-bump selected index pages when we update them. On the other hand, it would be a giant pain to cache-bump all of them, which we occasionally have to do. (E.g. when changing a web page template.)

@dfabulich
Copy link
Contributor

it would be a giant pain to cache-bump all of them

This is straightforward for "Enterprise" customers. (Not sure if we are)
https://developers.cloudflare.com/cache/how-to/purge-cache/purge_by_prefix/

Purge cache by prefix (Enterprise only)

@erkyrath
Copy link
Member Author

We're not.

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

No branches or pull requests

2 participants