• Resolved mimbelli

    (@mimbelli)


    Hi all,

    I’m trying to use Varnish cache and this plugin along with a Buddypress and BBpress installation. Everything works fine except forum pages that are not updated correctly.

    Unfortunately varnish is installed by default on my domain from my ISP so I heve little or no control on its configuration. From Cpanel I have only the option to enable/disable, purge and set TTL for static and dynamic objects.
    My ISP replied to me taht Varnish does not work with BBPress/BuddyPress. Is it true?

    Using your check status tool, for all my URL I get:

    Varnish is running but cannot cache.
    Your sever IP setup looks good. If you are using a proxy (like Sucuri or Cloudflare or Fastly) please double check that configuration and make sure to add a custom Varnish IP if necessary.
    Your site is compressing content and making the internet faster.
    Something is setting the header Cache-Control to “no-cache” which means visitors will never get cached pages.
    Something is setting the header Cache-Control to “max-age=0” which means a page can be no older than 0 seconds before it needs to regenerate the cache.

    Thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s true and its for a very obvious reason once you understand how Varnish works.

    See, Varnish works best for NON logged in users. If you’re logged in, you have a cookie, and if you have a cookie, Varnish’s default assumption is “This user doesn’t need a cache.”

    Which means, for bbPress or any forum plugin that pretty much requires you to be logged in, Varnish ain’t caching.

    I don’t offer (because I can’t) help in debugging why every plugin and/or theme doesn’t play well with Varnish. The plugin’s checker is there to help you get started in the diagnosis.

    Good luck!

    Thread Starter mimbelli

    (@mimbelli)

    Thank you for your kindly reply.

    Your explanation make sense but actually I get the entire BBpress forum cached hence in my instance Varnish is caching. I tried to disable all plugins and I tested it with standard WP themes as Twenty Seventeen & co. But even with them I get everything cached.

    Of course I do not pretend you debug my website. I just ask you some suggestion on what I can aks to investigate to my ISP which installed varnish as default.

    Thanks

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s not a function of the plugin at this point, but one in how you configure Varnish itself. Which is outside my realm of support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Varnish and BBPress’ is closed to new replies.