Author Topic: Varnish + Wordpress config ?  (Read 7176 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Varnish + Wordpress config ?
« on: July 08, 2016, 07:42:34 PM »
Has anyone managed add any configuration to Varnish and restart it ?

For example I want to add the standard setting to take cookies out the cache but the server doesn't start with this in the default.vcl

# Remove the wp-settings-1 cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-1=[^;]+(; )?", "")
;

# Remove the wp-settings-time-1 cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-time-1=[^;]+(; )?"
, "");

# Remove the wp test cookie
set req.http.Cookie = regsuball(req.http.Cookie, "wordpress_test_cookie=[^;]+(;
)?", "");

Offline
*
Re: Varnish + Wordpress config ?
« Reply #1 on: July 08, 2016, 10:05:17 PM »
Doesn't matter has I've removed Varnish, it was slowing down my sites.

Would it be possible to install varnish 4 without messing up CWP?