• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / nginx server tutorials (installation, configuration, performance tuning, security) / nginx fastcgi cache purge

nginx fastcgi cache purge

 

 

method 1 risky emergency mode

delete fast cgi cache

fast cg ache directory /var/www/html/fastcgicache

 

sudo rm -r /var/www/html/fastcgicache/*

 

worked to fine to purge updated psge in wordpress  (works for proxy cache also)

nginx helper plugin not working

 

Table of Contents

Toggle
    • How to Purge CLear Fastcgi Cache?
  • nginx helper plugin

How to Purge CLear Fastcgi Cache?

1.Add this Code your nginx /conf.d/ default.conf

 

location ~ /purge(/.*) {
fastcgi_cache_purge WORDPRESS “$scheme$request_method$host$1”;
}

location ~ \.php$ {
try_files $uri =404;

include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;

#fastcgi_pass unix:/var/run/php/sarkari.sock;

fastcgi_keep_conn on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffers 8 32k;
fastcgi_buffer_size 32k;

http2_push_preload on;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache FASTCGICACHE;
fastcgi_cache_valid 15m;
fastcgi_cache_min_uses 2;
fastcgi_max_temp_file_size 0;

add_header X-Cache $upstream_cache_status;
#fastcgi_pass_request_headers on;
#add_header Cache-Control “max-age=0, s-maxage=2000, must-revalidate”;
#etag on;
#add_header ‘Last-Modified’ $upstream_http_last_modified;
#access_log /var/log/nginx/phpfpmonly-access.log;

}
location ~ /purge(/.*) {
fastcgi_cache_purge FASTCGICACHE “$scheme$request_method$host$1”;
}

2. Enter server ip/purge  to clear the cache

 

or

 

nginx helper plugin

requires above code automatically purges the content.

 

install this to purge content automatically when wp pages updated.

Nginx Cache

 

in Some cases Fastcgi Caches won’t delete.

Then Delete Fastcgi Cache Directory, or Assign new location reload nginx.

Primary Sidebar

nginx server tutorials (installation, configuration, performance tuning, security)

  • Letsencrypt SSL Installation on apache/Nginx ubuntu / debian wordpress
  • fix error 520 522 524 on cloudflare wordpress godaddy nginx etc
  • nginx fastcgi cache wordpress how to configure
  • install LEMP Stack on 22.04 LTS Nginx MySQL PHP fpm #wordpress #digital ocean
  • Apache vs nginx (connection handling, modules, memory usage)
  • Pagespeed module install, configure, monitor, errors ft nginx &apache
  • nginx errors (504,502, 413, unable to start, syntax errors)
  • nginx conf explained best config file performance tuning tips nginx.conf location errors tutorial
  • use nginx as reverse proxy and load balancer for apache wordpress
  • nginx rewrite rules with examples 301 redirection
  • nginx modules list (enable, disable, upgrade, install dynamic module)
  • php fpm pool manager configuration settings based on server spike high cpu wordpress
  • php fpm restart nginx ubuntu enable status page, monitor etc
  • what is TTFB & how to Reduce it (server response time) Google pagespeed
  • letsencrypt install configure on ubuntu / debian nginx
  • Top 10 tips to improve nginx server security
  • nginx performance tuning connections, buffers file descriptors
  • enable brotli compression nginx brotli vs gzip
  • nginx installation on ubuntu 20.04 LTS
  • monitor nginx request with nginx status amplify datadog new relic
  • SSL faster reduce TLS hand shake improve https performance
  • nginx rate limiting explained by location time specific url
  • datadog nginx integration installation process
  • newrelic nginx integration process and errors fix and metrics
  • php fpm seems busy fixed warning and max children reached to handle max connections / requests
  • Php fpm configuration for 1000 concurrent connections server busy max children reached
  • php fpm ondemand vs dynamic vs Static (the dynamic pool problem)
  • nginx upstream response is buffered to a temporary file
  • php fpm install ubuntu 20.04 nginx
  • install phpmyadmin ubuntu nginx 22.04
  • upgrade php fpm ubuntu nginx 7.4 to 8.2
  • nginx add last modified header (remove, php wordpress)
  • php fpm dynamic pool manager settings
  • nginx fastcgi cache purge
  • nginx open file limit connections ulimits sysctl
  • php fpm high cpu usage WordPress 4 solutions nay work for you
  • nginx buffer size for wordpress
  • Cloudflare error code 524 nginx a timeout error occured
  • server configuration for 1000 concurrent users

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy