Control Web Panel
WebPanel => Apache => Varnish => Topic started by: filz51 on May 11, 2021, 11:52:58 AM
-
I need to disable Varnish caching for logged in wordpress users
The rule is for
sub vcl_recv {
if (req.http.cookie ~ "wordpress_logged_in") {
return (pass);
}
if (req.http.Cache-Control ~ "(no-cache|no-store|private)") {
return (pass);
}
When I paste it into /etc/varnish/conf.d/vhosts/MYDOMAIN.conf and rebuild the webserver, these rules are lost. Can I paste them somewhere else (template?) where it's not overridden after rebuilding the server?
-
this info is on cwp wiki
http://wiki.centos-webpanel.com/webservers-vhost-templates
-
Thank you!