I have a simple page with parts:
- list of items taken from the database
- heading.
The heading contains the usual "login form" or the name of the user who logged in. For all users, the “part of the elements” is the same, but if I cache the whole view, a different header (your own username or login form if you are not logged in) does not appear according to the state of the user. How can I cache the "items" part and leave a dynamic header? Thanks.
source share