• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Nginx Cache Purge Module For fastcgi_cache WordPress

By Abhishek Ghosh May 25, 2015 9:05 am Updated on May 25, 2015

Nginx Cache Purge Module For fastcgi_cache WordPress

Advertisement

Nginx Plus by Default Supports Cache Purging. Nginx Cache Purge Module For fastcgi_cache Exists Can Be Used For Community Edition of Nginx. In other words, you need to build Nginx from source with Nginx Cache Purge Module while configuring. Else the directive or WordPress Plugin will not work. This feature is frequently needed for Nginx running WordPress website.

 

Nginx Cache Purge Module For fastcgi_cache : Building Nginx From Source

 

There are two modules so far we noticed :

Vim
1
2
https://github.com/FRiCKLE/ngx_cache_purge
https://github.com/wandenberg/nginx-selective-cache-purge-module

Now the commands :

Advertisement

---

Vim
1
2
3
4
# debian, Linux Mint, ubuntu
sudo apt-get install build-essential zlib1g-dev libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgd2-xpm-dev libgeoip-dev libgoogle-perftools-dev libperl-dev -y
# REHL, centos...
sudo yum install gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools-devel -y

Browse on the browser here – http://nginx.org/download/ for the latest version & replace the version number :

Vim
1
2
3
4
5
6
7
8
9
cd ~
wget http://nginx.org/download/nginx-1.9.0.tar.gz
tar -xzf nginx-1.9.0.tar.gz
wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz
tar -xzf ngx_cache_purge-2.3.tar.gz
cd nginx-1.9.0.tar.gz
./configure --help
# see help page above
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-pcre --with-google_perftools_module --with-debug --add-module=../nginx-cache-purge-module

If you use the second module, then you should wget a tagged release and configure it. You must follow that Github description and install Redis 2.8 / newer, hiredis, redis_nginx_adapter library before configuring :

Vim
1
2
3
4
5
6
7
8
cd ~
wget http://nginx.org/download/nginx-1.9.0.tar.gz
tar -xzf nginx-1.9.0.tar.gz
wget https://github.com/wandenberg/nginx-selective-cache-purge-module/archive/0.5.5.tar.gz
tar -xzf 0.5.5.tar.gz
cd nginx-1.9.0.tar.gz
./configure --help # see the options
./configure --with-ld-opt='-L/usr/lib/' --with-cc-opt='-I/usr/include/hiredis/' --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx  --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_spdy_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-pcre --with-google_perftools_module --with-debug --add-module=../0.5.5

Now you can run :

Vim
1
2
make
make install

Wait till the process completes and run sudo service nginx start or sudo systemctl start nginx. Run nginx -V to test.

Nginx Cache Purge Module For fastcgi_cache WordPress

 

Nginx Cache Purge Module For fastcgi_cache WordPress

 

The first module has some documentation by the others, second one has near nothing. Directives are written in their Github pages, you can now use the WordPress plugins to purge the cache.

Tagged With centos yum nginx purge , fastcgi_cache WORDPRESS; unknown WordPress , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1831 ixfPEjGTpxs3zIIo9M2puUjtBbvSjAMiNZn2MqIu3x0Zd0DKV_cg2OlQSjh0a3SH 763d623f2486742d1ed338619231b66a72dc60a6&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , with-ld-opt redis_nginx_adapter , wordpress ngx_cache_purge-2 3
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Nginx Cache Purge Module For fastcgi_cache WordPress

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Nginx Cache Purge With nginx-extras Apt & Yum Repo

    Those who do not want to build Nginx from source to get Nginx Cache Purge Module Can Test Official apt or yum version of nginx-extras version.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How Affiliate Marketing WorksNovember 28, 2023
  • Phases of Product DevelopmentNovember 27, 2023
  • Sub-Areas of Direct MarketingNovember 27, 2023
  • Strengths and Weakness of Direct MarketingNovember 26, 2023
  • Bus Terminal BasicsNovember 26, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy