-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to resolve the template digest #17
Comments
You can manually clear the cache with Rails.cache.clear, or use the expires_in param of fetch to force the cache to invalidate after a few hours or days. Cachehelpers will normally only invalidate the cache if the object you’re caching with (assignment) has been modified in a way that touches the updated_at field, unless you’re providing a static key. Since this is a structural change of the template though that would affect all assignments, I would just clear the cache of the server when you deploy the updated code. |
I think @levonmaa has a valid concern/idea. We use jb extensively and going in and manually expiring cache can be rather nettlesome. It would be useful to expire the cache of the template when it changes. |
Two late thoughts on that:
|
Curently I have a template that has the following
And it caches out nicely.
But when I edit the template contents, say add a new item there, the cache does not invalidate. I know that ActionView::Helpers::CacheHelpers has functionality for this, but how to take advantage of it?
The text was updated successfully, but these errors were encountered: