manifest / performance / wordpress-fastcgi-cache
Wordpress FastCGI Cache
Quick tool utilities to manage a fastcgi cache enabled server
by Justin Workman · github.com/jworkman/wordpress-fastcgi-cache · website
★ 0stars
435composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jworkman/wordpress-fastcgi-cache/archive/refs/heads/master.zipAlso on Packagist as jworkman/wordpress-fastcgi-cache:
composer require jworkman/wordpress-fastcgi-cacheFrom the readme
wordpress-fastcgi-cache
Quick tool utilities to manage a fastcgi cache enabled server
Nginx Configuration
In order to setup Nginx to use fast cgi cache we must configure Nginx in a couple of different places. This plugin assumes that the fast cgi cache will be located in the directory /var/cache/nginxfastcgi
So first lets make that directory on the server:
mkdir -p /var/cache/nginxfastcgi
Also create a global directory in your nginx etc directory:
mkdir /etc/nginx/global
Make sure you set the ownership to whatever user your nginx user is running under. Run the following and replace ownername with the username that nginx uses to run under:
chown -R ownername:ownername /var/cache/nginxfastcgi
After that lets create a file called /etc/nginx/global/wordpresscache.conf and place the below code inside of it. You can change it where you like, however be cautious of the $fastcgiskipcache stuff. Also make sure to update your fast cgi socket file location to where php-fpm places its socket.
example FastCGI cache exception rules
set $fastcgiskipcache 0;
if ($httpcookie ~ "userslogincookie") {
set $fastcgiskipcache 1;
}
if ($requestmethod = POST) {
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.