• 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

This Article Has Been Shared 982 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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 PHP5-FPM WordPress : Major Tweaks

    Here is a Short Yet More Than Enough Guide For the Most To Tweak Nginx PHP5-FPM WordPress Setup Running on Ubuntu 14.04 on Rackspace Cloud Server.

  • HHVM WordPress (Nginx Ubuntu Server) Tweaks

    Here are some special HHVM Wordpress (Nginx Ubuntu Server) Tweaks for Page Speed optimization, Compatibility of WordPress Themes and Plugins.

  • Zend Opcache Optimization for Nginx Ubuntu (HP Cloud)

    Here is Full Guide to Zend Opcache Optimization for Nginx PHP5-FPM for Ubuntu Server Running on HP Cloud. We Suggest to Use Zend Opcache over APC.

  • Enable Nginx PHP-FPM Status Page (Ubuntu, HP Cloud)

    Here is How To Enable Nginx PHP-FPM Status Page on Ubuntu Server Instance Running on HP Cloud. Enabling Ping Has Difference With Enabling Status.

  • Ngnix Status Graph in PHP5-FPM Setup

    If We Do Not Create Ngnix Status Graph in PHP5-FPM Setup After Enabling Nginx Status Page, The Fun Remains Incomplete. Easiest Way is Described Here.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021
  • Effects of Digitization on Companies : Part XIII January 13, 2021
  • What is SoftAP Mode? January 12, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Nginx Cache Purge Module For fastcgi_cache WordPress," in The Customize Windows, May 25, 2015, January 17, 2021, https://thecustomizewindows.com/2015/05/nginx-cache-purge-module-for-fastcgi_cache-wordpress/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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