-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
action caching keys don't change when template changes #124
Comments
@jjb great to hear from you. I agree that having There is an article here that will invalidate the cache on each deploy: That could be one way to go about it. |
I don't want to bust all etags for all resources in the app every time i deploy -- i'll soon have thousands of daily users and be deploying multiple times a day. i guess for smaller sites that is a good option. |
@jjb since we're deprecated the ActionCaching in High Voltage I'm going to close this issue. If you are getting tons of traffic on mostly static pages I'd suggest checking out Varnish. Its a reverse-proxy that sits in front of your rails app. Here is a quick overview: http://www.hward.com/scale-rails-with-varnish-http-caching-layer |
sounds good. just to be clear -- varnish (and rack cache and friends) requires http caching, which requires sending optimal headers when serving high_voltage pages. does high_voltage support this directly or would one have to manually code it into a custom controller? |
@jjb it would need a custom controller. Could def be in interesting idea to build that in as a config option to the initializer. |
Hi, I'm @jjb. You might know me from commits such as ability to specify that layout should not be cached. I recently discovered/realized that whatever rails uses for its cache key does not change if the template involved changed. I did a cursory search for best practices for bumping this key and couldn't find anything.
If such a method exists, we should try to implement it within high_voltage.
If not, then we should probably deprecate action_caching.
my current solution is to turn off action caching and simply put
at the top of every single page.
pros:
cons:
these cons are well worth it to me, especially for the small number of static pages that I use high_voltage for.
so, actions/questions:
- cache
at the top of every template?The text was updated successfully, but these errors were encountered: