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
Feature request: Release previous caching jobs before generating cache #454
Comments
When you say "deployment", what kind of setup are you referring to? What you're asking is not as trivial as it sounds, because saving an entry can affect pages which may be different to the pages changed by saving another entry. If we're talking about generating the entire cache then you may have a point, I'll need to look into it further though, as there are lots of pieces to this puzzle and some things have to happen in a certain order. |
@bencroker Thanks for your prompt response! Sorry, by "deployment" i meant deploying updates of the codebase to the staging or production server. Eg. when twig templates are changed and those changes are deplyoed to the server, the whole blitz cache is cleared. I see your point. For my case, it'd already be very helpful, if running |
Yeah I can look into which approach makes the most sense, thanks for the suggestion! |
Added in 8d179d1 for the next release. Note that this will only work when cache clearing is enabled, as otherwise the cache generation jobs need to be allowed to complete, since they are responsible for regenerating expired cache. |
Thank you! 🙌 |
Just released in version 4.3.0. |
Hi, - and first of all, thank you very much for all your effort on this great plugin!
i'm using blitz on a site with a few thousand pages, so generating the full cache is taking some to finish.
This is generally no issue, except in some cases:
i was therefore wondering, whether it'd somehow be possible to release all blitz jobs from the queue before starting to (re-)generate the cache; or if there was any other way to prevent this from happening?
Thank you very much for your help!
Craft CMS Pro 4.3.1
Blitz 4.2.3
The text was updated successfully, but these errors were encountered: