-
Notifications
You must be signed in to change notification settings - Fork 335
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
cache_all_output vs fragment caching #281
Comments
I go into more detail about cache_all_output here. They key part is:
Meaning that if you cache user.cache_key under one of your templates, that's the cache entry that's going to be used for all templates matching user.cache_key. Every representation of user is a singleton of user. If you want to represent the user twice, you can use: child :user => :user do
extends "users/user"
end
child :user => :user_with_email do
extends "users/secure_user"
end |
If you have any other questions, you can reopen it. |
Hi, sorry if my question sounds noobish but what is the difference between the config option
cache_all_output
vs. having to do something likein a template? Does
cache_all_output
save you from having to do this in each template and enable caching for every template? From my tests, it doesn't seem so. So what doescache_all_output
do exactly?The text was updated successfully, but these errors were encountered: