If I use Lighttpd as webserver, how can I use caching plugin like w3 total cache or wp super cache?
Need your help for configuring lighttpd.
Thanks.
If I use Lighttpd as webserver, how can I use caching plugin like w3 total cache or wp super cache?
Need your help for configuring lighttpd.
Thanks.
You must be logged in to post a comment.
The following script takes the url that was asked from the client. It checks whether there is a fresh version of a static HTML page on the cache and if yes, it servers that. If the file does not exist at all or the it is expired(I check its modification date) then the request is forwarded to the PHP fcgi so that it can be freshly served.
This is for Wp Super Cache.
Download the latest version of the rewrite.lua script from this github project site.
Place rewrite.lua in the root directory of your WordPress installation, i.e., the same directory where you find the WordPress PHP files such as wp-config.php.
Update your lighttpd config file for the host running WordPress and include this command:
magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" )
Make sure the Mobile device support option of the WP Super Cache plugin is enabled and the Rejected User Agents list is up-to-date. Youâll find those options in the Settings -> WP Super Cache menu of WordPress once WP Super Cache has been activated.
The lighttpd host configuration should now look somewhat similar to this:
Nginx has better support. http://wiki.nginx.org, http://wiki.nginx.org/Wordpress
The WP Super Cache plugin developer has the Nginx rewrite rules for his plugin on his blog: http://ocaoimh.ie/2009/11/23/wordpress-nginx-wp-super-cache/