dcoxall / dcoxall-wordpress

Puppet NGINX, PHP-FPM and MySQL configured for Wordpress
5 stars 2 forks source link

Disable caching #2

Closed dcoxall closed 10 years ago

dcoxall commented 10 years ago

Currently after viewing a page for the first time the static assets are cached. Ideally we should be able to do...

class { "wordpress":
  cache => false,
}

I have played around with removing the expires max; declaration in wordpress.erb but that alone doesn't seem to fix it.

dcoxall commented 10 years ago

http://trac.nginx.org/nginx/ticket/245

Turns out the use of sendfile on Virtualbox is broken. The above in combination with sendfile off should fix this. I will work on a way of bringing these into this module.

dcoxall commented 10 years ago

Closing as v2.0.0 supports this although the sendfile off fix for VirtualBox isn't included.