Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cache_all_output vs fragment caching #281
Hi, sorry if my question sounds noobish but what is the difference between the config option
in a template? Does
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
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