Better WP Varnish
ERROR: Could not clear cache. Contact your server administrator if this error pe (3 posts)

  1. lwish
    Posted 3 years ago #


    I'm running into this problem, could you give me a pointer where to start troubleshooting?


  2. zygis
    Posted 3 years ago #

    What actions are you performing when this error happens?

    I see this error every time I use the Clear All link from the admin bar.

    I've been using varnishlog like so: varnishlog -x CLI -x Backend_health -m 'RxRequest:PURGE', to try and catch the request that results in this error, but haven't found anything weird yet.

  3. zygis
    Posted 3 years ago #

    The plugin source code reveals that in certain cases you might end-up with a "Could not clear cache" error even though the required object is purged successfully.

    The plugin expects one of the two return codes from Varnish, either "200 OK" or "200 Purged". If your VCL returns a different message to the PURGE operation, you'll get this error.

    To fix this, you should update your VCL and only issue either "200 OK" or "200 Purged" responses to PURGE requests.

    I don't know if this is your issue, but it certainly caused me to scratch my head.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WP Varnish
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.