cache users

wrong userinformation shown after login

Question

Wrong user information is shown after login. How can I prevent this behavior?

Answer

The problem is the cache. The cache is working per component. When a component contains user information, the cache per user must be activated. There are two possibilities 

  1.  Use pro properties file for the component, see: Cache configuration with properties file
  2. Use option tab in edit mode and activate the cache mixin to set the cache per User (with this option, don't forget to publish the content) : 
    cachePerUser.jpg