Hi Gibbs,
What version of modx revo and varnish are you running please? How does the plugin work eg does it purge after an entry is updated/added or is it a manual purge button somewhere in manager interface?
I am planing to use it with revo 2.2.7, Ubuntu 12.10. ? What ssh command are you using to purge via ssh if needs be? Any other vcl info or quirky experiences with using varnish?
Thanks!!!!!
Updated
I have Modx Revo 227 running with Varnish now. I do get the error "Varnish Purge: Invalid method 'curl'. Please set the method to 'curl' or 'file_get_contents' via the System Settings." when clearing the Modx cache even though i have curl enabled: PHPINFO: cURL support enabled,cURL Information 7.27.0
Setting file_get_contents in Settings stops the error. Just wondering why curl aint working and is there a preference between both options ie whats the difference?
My vcl file is named main.vcl and I have copy and pasted the default.vcl contents (uncommented) into it and added your additions as per
http://www.goldcoastmedia.co.uk/tools/modx-varnish-purge. I start varnish using varnishd -f /etc/varnish/main.vcl -s malloc,200M. Templates show fine but if I edit a resource and change the content text from say "hello world" to "goodbye", "goodbye" appears immediately. Shouldn't "hello world" appear until such time as I clear the cache or until a specific time lapse? Or does an edit to an entry auto purge the content?
Would be great to understand this better. my response header is below
Thanks
Server: Apache/2.2.22 (Ubuntu)
x-powered-by: PHP/5.4.14-1~quantal+1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
Content-Length: 135
Accept-Ranges: bytes
Date: Sat, 11 May 2013 15:34:47 GMT
X-Varnish: 690407157
Age: 0
Via: 1.1 varnish
Connection: keep-alive
200 OK
[ed. note: howster last edited this post 11 years ago.]