WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lwish
    Member
    Posted 1 year ago #

    Hello,

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

    http://wordpress.org/extend/plugins/better-wp-varnish/

  2. zygis
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.