• Resolved tictok

    (@tictok)


    Wondering if there’d be any point or speed again running ZenCache on a site that’s already behind Varnish?

    I’ve been tweaking my clients sites for the past couple of day, optimising and making things a little zippier and it’s getting addictive trying to save a second or two of page load time.

    I’m considering installing / trying Varnish on my VPSs, but wouldn’t that effectively do the same thing that ZenCache is already doing? (serving static HTML pages instead of compiling PHP pages).

    Should I only use one or the other or is there a case for using both?

    Thanks
    Stef

    https://www.ads-software.com/plugins/zencache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raam Dev

    (@raamdev)

    @tictok ZenCache (and other WordPress caching plugins) work by caching the output of WordPress, thereby saving you unnecessary WordPress database queries. Varnish has no awareness of WordPress–all it does is capture HTML from the web server and then cache that HTML for future visitors. If you’re using WordPress, you should still be using a WordPress caching plugin. A WordPress page caching plugin like ZenCache is able to create an HTML cache and make sure that the cache stays up-to-date, so that if you do something like publish a new post, ZenCache can clear the necessary HTML cache files to keep your cache up-to-date.

    We’re working on improving ZenCache integration with Varnish so that ZenCache can intelligently tell Varnish when it should purge it’s cache (e.g., when you publish or edit a post). Please follow this GitHub issue. In the meantime, ZenCache can be configured to tell Varnish when to purge its cache by following these instructions.

    Thread Starter tictok

    (@tictok)

    Only just seen your reply raamdev. Thanks very much.
    I had to put the Varnish thing on hold until I get around to updating my VPS to a 64bit OS.

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zencache with Varnish?’ is closed to new replies.