Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ERROR: Could not clear cache. Contact your server administrator if this error pe’ is closed to new replies.