0

I use the normal standard Drupal Forum module with a clean Drupal 8 installation. After I have installed it, I have a problem where "2 new posts" shows for all users. In other words, the /forum page is caching and showing the cached page of one user for the other user.

So I have two options

  1. Disable caching for /forum <--- I don't mind doing this for now, as there aren't many users at the moment so I have time to fix this properly later.
  2. Figure out why this page is caching the way it is. As mentioned, I am using a clean installation with hardly any confirm and this still happens.

Can someone confirm if the /forum page normally does this or if something is probably wrong with my installation? Or maybe I'm missing some setting? Or maybe caching is meant to be disabled for this to work?

Any help would be greatly appreciated!

  • How to disable cache for particular page, drupal.stackexchange.com/a/151289/72672 – Jdrupal Aug 23 at 7:14
  • The same thing happens to me. Most pages are cached and showing old things as new etc. I can't see how this page can work with caching enabled, so I'm also looking for answers? – coderama Oct 19 at 12:29
  • 1
    Fixing the module would be off-topic here, this belongs in the issue queue. For the underlying question, how to vary the cache by the current user, see drupal.stackexchange.com/questions/281230/… – 4k4 Oct 21 at 9:30
  • Can you replicate the issue on a fresh install? – No Sssweat Oct 23 at 5:16
-2

This documentation is the most suitable for your query: https://www.drupal.org/docs/8/api/cache-api/cache-contexts

Please learn all the details on that page and the other associated page. This may resolve your issue.

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.