How do I disable caching for the Forum module or, alternatively, how do I fix caching?
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.