Web

Google page speed module nginx delete cache

Learn how to delete cache in Google page speed module nginx.

Google page speed module nginx is a great way to speed up your website speed and handle more requests.ย  There are tons of caching plugins out there especially for wordpress and other popular CMS systems, however, Google’s pagespeed functions at the webserver level and doesn’t rely on a plugin for instance in WordPress or other CMS.ย  If you are using the ever growing in popularity web server nginx, the module has to be compiled in with Nginx to provide the functionality.ย  There are many posts out there that show how to do this as it isn’t too difficult if you make sure to pay attention to details in compiling, file locations, etc.

This is a really exciting module as many have reported extreme performance gains in simply compiling their web server with the pagespeed module.ย  Let’s face it.ย  When Google gets involved with a project and making changes or improvements, we know they are going to become a major player by default.ย  Also, for SEO in 2014, website performance is more important than ever!ย  Google’s rankings are taking performance into account more than previous years past.ย  End users also expect fast performing websites to gather their information.ย  So keep that in mind when tweaking your site and considering performance in your strategy.

However, if you are already running Google pagespeed module in nginx or other webserver and make a change to the CSS styling of your site for instance or other change that you hope to refresh and see, you may not get the desired results due to the caching of the module.ย  The quick and easy way to delete your cache in Nginx is to simply perform the following command at the command prompt (assuming you are running on a linux host).

touch /etc/ngx_pagespeed_cache/cache.flush

 

After performing the command above, simply give your web server a few seconds depending on the size of your cache and then refresh your page in the browser.ย  You should then see the desired results and changes that you have made and expect to be able to see.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.