I have a simple page with the parts:
- a list of items taken from the database
- a header.
On the header lies the usual "login form" or the name of signed-in user. For all the users the "items part" is the same, but if I cache the whole view, the different header (your own username or login form if you're not signed-in) is not shown according to the user state. How can I cache the "items" part and leave the header dynamic? Thanks.