<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to speed up WordPress	</title>
	<atom:link href="https://websavers.ca/how-to-speed-up-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>https://websavers.ca/how-to-speed-up-wordpress</link>
	<description>Web services made easy</description>
	<lastBuildDate>Sat, 02 May 2026 21:14:44 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-327496</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Mon, 14 Apr 2025 16:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-327496</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-327435&quot;&gt;Diana&lt;/a&gt;.

Thanks for letting us know, Diana! We&#039;ve been chatting about replacing Super Cache + Autoptimize as our recommended free option with W3 Total Cache. I&#039;ve now done that - give it a try!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-327435">Diana</a>.</p>
<p>Thanks for letting us know, Diana! We&#8217;ve been chatting about replacing Super Cache + Autoptimize as our recommended free option with W3 Total Cache. I&#8217;ve now done that &#8211; give it a try!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Diana		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-327435</link>

		<dc:creator><![CDATA[Diana]]></dc:creator>
		<pubDate>Fri, 11 Apr 2025 19:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-327435</guid>

					<description><![CDATA[Under Configuring Autoptimize you recommend:
Under the Extra tab, beside Google Fonts, try out the option to “Combine and load fonts asynchronously with webfont.js”

This option isn&#039;t available. Recommendations?]]></description>
			<content:encoded><![CDATA[<p>Under Configuring Autoptimize you recommend:<br />
Under the Extra tab, beside Google Fonts, try out the option to “Combine and load fonts asynchronously with webfont.js”</p>
<p>This option isn&#8217;t available. Recommendations?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-127961</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Wed, 07 Sep 2022 12:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-127961</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-73265&quot;&gt;Jesse&lt;/a&gt;.

Hey Jesse,

Try this out:
&lt;code&gt;
location @apache_fallback {
  proxy_pass                        $ws_proxy_url;
  proxy_set_header Host             $host;
  proxy_set_header X-Real-IP        $remote_addr;
  proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
  access_log off;
}
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html $uri @apache_fallback;
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-73265">Jesse</a>.</p>
<p>Hey Jesse,</p>
<p>Try this out:<br />
<code><br />
location @apache_fallback {<br />
  proxy_pass                        $ws_proxy_url;<br />
  proxy_set_header Host             $host;<br />
  proxy_set_header X-Real-IP        $remote_addr;<br />
  proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;<br />
  access_log off;<br />
}<br />
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html $uri @apache_fallback;<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jesse		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-73265</link>

		<dc:creator><![CDATA[Jesse]]></dc:creator>
		<pubDate>Sat, 09 Jul 2022 00:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-73265</guid>

					<description><![CDATA[Hello Jordan,

  Thanks for this post / info!  I am trying to set this up on a plesk server with WP Super Cache, but the nginx directives don&#039;t seem to be correct now (2022).  I found if I change the last block from index.hmtl to index-https.html (ie. includes the request scheme) that it will serve the man homepage (the only cached page currently):

  try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html $uri /index.php;

However any page which is not cached, or all pages without that change, fall through to index.php and it actually sends the contents of index.php (ie. php code), it does not pass the request to the php handler (using php-fpm).  Similarly in the wp-admin backend, any requests just send tools.php, options.php, etc.

Thanks for any tips....

Jesse]]></description>
			<content:encoded><![CDATA[<p>Hello Jordan,</p>
<p>  Thanks for this post / info!  I am trying to set this up on a plesk server with WP Super Cache, but the nginx directives don&#8217;t seem to be correct now (2022).  I found if I change the last block from index.hmtl to index-https.html (ie. includes the request scheme) that it will serve the man homepage (the only cached page currently):</p>
<p>  try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html $uri /index.php;</p>
<p>However any page which is not cached, or all pages without that change, fall through to index.php and it actually sends the contents of index.php (ie. php code), it does not pass the request to the php handler (using php-fpm).  Similarly in the wp-admin backend, any requests just send tools.php, options.php, etc.</p>
<p>Thanks for any tips&#8230;.</p>
<p>Jesse</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Marci		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-20933</link>

		<dc:creator><![CDATA[Marci]]></dc:creator>
		<pubDate>Thu, 24 Mar 2022 07:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-20933</guid>

					<description><![CDATA[Thanks so much for this post. I was able to bring my client&#039;s GTMetrix score from a C to an A in less time than it takes me to make a cup of coffee. They are happy! (Me, too!)]]></description>
			<content:encoded><![CDATA[<p>Thanks so much for this post. I was able to bring my client&#8217;s GTMetrix score from a C to an A in less time than it takes me to make a cup of coffee. They are happy! (Me, too!)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17936</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Sun, 26 Jan 2020 02:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17936</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-17929&quot;&gt;Joël&lt;/a&gt;.

Hey Joël, thanks for the comments and server logs! Try replacing the location ~ / block with this version and let me know the results.
```
location ~ / {
   try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri /index.php;
}
```]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-17929">Joël</a>.</p>
<p>Hey Joël, thanks for the comments and server logs! Try replacing the location ~ / block with this version and let me know the results.<br />
&#8220;`<br />
location ~ / {<br />
   try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri /index.php;<br />
}<br />
&#8220;`</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joël		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17929</link>

		<dc:creator><![CDATA[Joël]]></dc:creator>
		<pubDate>Sat, 25 Jan 2020 19:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17929</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-17513&quot;&gt;Jordan Schelew&lt;/a&gt;.

Hi Jordan! I&#039;m experiencing the same problem as Ryan. These are my logs for when I load the code: https://bit.ly/30Tw9hF
Even if the NGINX-part of Wp Super Cache doesn&#039;t work I&#039;m very impressed with the better performance of my sites ;-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-17513">Jordan Schelew</a>.</p>
<p>Hi Jordan! I&#8217;m experiencing the same problem as Ryan. These are my logs for when I load the code: <a href="https://bit.ly/30Tw9hF" rel="nofollow ugc">https://bit.ly/30Tw9hF</a><br />
Even if the NGINX-part of Wp Super Cache doesn&#8217;t work I&#8217;m very impressed with the better performance of my sites 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17513</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 20:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17513</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-17512&quot;&gt;Ryan&lt;/a&gt;.

Hey Ryan,
Thanks for the feedback! I&#039;ve corrected that part of the guide: the &quot;Additional nginx directives&quot; under Apache &amp; nginx settings is the right place. After you add it, what specifically do the logs say is the reason for the 403?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-17512">Ryan</a>.</p>
<p>Hey Ryan,<br />
Thanks for the feedback! I&#8217;ve corrected that part of the guide: the &#8220;Additional nginx directives&#8221; under Apache &#038; nginx settings is the right place. After you add it, what specifically do the logs say is the reason for the 403?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ryan		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17512</link>

		<dc:creator><![CDATA[Ryan]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 20:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17512</guid>

					<description><![CDATA[Hi Jordan,

Firstly thanks for the great post.

In Plesk Onyx/Obsidian where exactly should the code in point 8 be added?
I cannot find the &quot;Web Server Settings&quot; or an &quot;Advanced Field&quot;

If I add it to &quot;Apache &#038; nginx Settings&quot; in the bottom Additional nginx directives section the website immediately shows a 403 error.

Am I doing something wrong?]]></description>
			<content:encoded><![CDATA[<p>Hi Jordan,</p>
<p>Firstly thanks for the great post.</p>
<p>In Plesk Onyx/Obsidian where exactly should the code in point 8 be added?<br />
I cannot find the &#8220;Web Server Settings&#8221; or an &#8220;Advanced Field&#8221;</p>
<p>If I add it to &#8220;Apache &amp; nginx Settings&#8221; in the bottom Additional nginx directives section the website immediately shows a 403 error.</p>
<p>Am I doing something wrong?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17390</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Sun, 15 Dec 2019 14:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17390</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-17385&quot;&gt;Sarang Walet&lt;/a&gt;.

Hey Sarang, yes we&#039;ve found WP Rocket to be the best balance of effectiveness, simplicity, and power. Google&#039;s algorithm does indeed still appear to take site speed into account, though I would take their PageSpeed results with a grain of salt. I think regardless of what benchmarking tool you use, the TTFB for your target geographic market is going to be your most important metric on which everything else is laid atop. Ensuring that at bare minimum you&#039;ve got a fast web server working in tandem with static file output to serve your compressed index HTML file, you should be able to reach avg 100ms TTFB; and that is an excellent baseline on which the rest of the site&#039;s resources will be loaded. If you don&#039;t have that baseline, ignore everything else and make that happen first.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-17385">Sarang Walet</a>.</p>
<p>Hey Sarang, yes we&#8217;ve found WP Rocket to be the best balance of effectiveness, simplicity, and power. Google&#8217;s algorithm does indeed still appear to take site speed into account, though I would take their PageSpeed results with a grain of salt. I think regardless of what benchmarking tool you use, the TTFB for your target geographic market is going to be your most important metric on which everything else is laid atop. Ensuring that at bare minimum you&#8217;ve got a fast web server working in tandem with static file output to serve your compressed index HTML file, you should be able to reach avg 100ms TTFB; and that is an excellent baseline on which the rest of the site&#8217;s resources will be loaded. If you don&#8217;t have that baseline, ignore everything else and make that happen first.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sarang Walet		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17385</link>

		<dc:creator><![CDATA[Sarang Walet]]></dc:creator>
		<pubDate>Sun, 15 Dec 2019 01:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17385</guid>

					<description><![CDATA[WP Rocket Plugin is really recommended to increase site speed, even though the appearance is simple, there aren&#039;t many animations or other styles but it&#039;s really really great for On Page SEO especially for visitors who use smartphones. Google&#039;s algorithm seems to still be assessing site loading pages, right?]]></description>
			<content:encoded><![CDATA[<p>WP Rocket Plugin is really recommended to increase site speed, even though the appearance is simple, there aren&#8217;t many animations or other styles but it&#8217;s really really great for On Page SEO especially for visitors who use smartphones. Google&#8217;s algorithm seems to still be assessing site loading pages, right?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fahad		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-17184</link>

		<dc:creator><![CDATA[Fahad]]></dc:creator>
		<pubDate>Thu, 24 Oct 2019 04:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-17184</guid>

					<description><![CDATA[The best and most well-documented article on how to speed up wordPress for newbie.]]></description>
			<content:encoded><![CDATA[<p>The best and most well-documented article on how to speed up wordPress for newbie.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7322</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Sat, 20 Feb 2016 14:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7322</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-7321&quot;&gt;Kevin&lt;/a&gt;.

Kevin,

Honestly we&#039;ve just been using the if statement on all our sites! I tried switching back and forth and running speed tests and the difference never showed itself. I suppose it would actually be in terms of CPU usage on the server side, but even that hasn&#039;t presented issues on shared hosting.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-7321">Kevin</a>.</p>
<p>Kevin,</p>
<p>Honestly we&#8217;ve just been using the if statement on all our sites! I tried switching back and forth and running speed tests and the difference never showed itself. I suppose it would actually be in terms of CPU usage on the server side, but even that hasn&#8217;t presented issues on shared hosting.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kevin		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7321</link>

		<dc:creator><![CDATA[Kevin]]></dc:creator>
		<pubDate>Sat, 20 Feb 2016 14:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7321</guid>

					<description><![CDATA[Hi Jordan,

thanks for this great tutorial. 

If i use the code to avoid if statements for performance the /wp-admin link gets too many redirections.

With the if statement everything works fine.

Can you help me with that?

Thanks 
Kevin]]></description>
			<content:encoded><![CDATA[<p>Hi Jordan,</p>
<p>thanks for this great tutorial. </p>
<p>If i use the code to avoid if statements for performance the /wp-admin link gets too many redirections.</p>
<p>With the if statement everything works fine.</p>
<p>Can you help me with that?</p>
<p>Thanks<br />
Kevin</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7320</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Tue, 21 Jul 2015 19:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7320</guid>

					<description><![CDATA[Hey there Sahil,

That does make sense! HTTP authentication either manually configured or using Plesk probably only gets set up via .htaccess file or specific apache config file, which is not read by nginx. While I haven&#039;t tested this, a quick check of the nginx documentation indicates that the following should work. Add it to the same place you put the nginx supercache config:

auth_basic &quot;Restricted&quot;;
auth_basic_user_file {PATH_TO_.htpasswd};

Note that you have to include the path to your .htpasswd file that was set up to work with Apache. If you created it through Plesk, then the path to the .htpasswd file should be located within the apache config file for the domain here:

/var/www/vhosts/system/{DOMAIN}/conf/last_httpd.conf

Open up that file and look for a reference to .htpasswd -- copy the directory path and use it in the nginx code above. Any remaining issues would have to be permission related.

All that said... if you DID create your http authentication via Plesk, &lt;a href=&quot;http://forum.odin.com/forums/plesk-12-x-for-linux.735/&quot; rel=&quot;nofollow&quot;&gt;you should let them know&lt;/a&gt; that they&#039;re not configuring nginx at the same time, as this should be up to them to do!]]></description>
			<content:encoded><![CDATA[<p>Hey there Sahil,</p>
<p>That does make sense! HTTP authentication either manually configured or using Plesk probably only gets set up via .htaccess file or specific apache config file, which is not read by nginx. While I haven&#8217;t tested this, a quick check of the nginx documentation indicates that the following should work. Add it to the same place you put the nginx supercache config:</p>
<p>auth_basic &#8220;Restricted&#8221;;<br />
auth_basic_user_file {PATH_TO_.htpasswd};</p>
<p>Note that you have to include the path to your .htpasswd file that was set up to work with Apache. If you created it through Plesk, then the path to the .htpasswd file should be located within the apache config file for the domain here:</p>
<p>/var/www/vhosts/system/{DOMAIN}/conf/last_httpd.conf</p>
<p>Open up that file and look for a reference to .htpasswd &#8212; copy the directory path and use it in the nginx code above. Any remaining issues would have to be permission related.</p>
<p>All that said&#8230; if you DID create your http authentication via Plesk, <a href="http://forum.odin.com/forums/plesk-12-x-for-linux.735/" rel="nofollow">you should let them know</a> that they&#8217;re not configuring nginx at the same time, as this should be up to them to do!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sahil		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7319</link>

		<dc:creator><![CDATA[Sahil]]></dc:creator>
		<pubDate>Wed, 24 Jun 2015 11:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7319</guid>

					<description><![CDATA[Having problem with http authentication with wp supercache in plesk panel.
When i enable supercache with nginx and write the above code with nginx my http authentication for login page not working. 401 authentication page comes but after entered details it started downloding that page. 
Please send me the proper code for using supercache with http authorization for login page.

Thanks]]></description>
			<content:encoded><![CDATA[<p>Having problem with http authentication with wp supercache in plesk panel.<br />
When i enable supercache with nginx and write the above code with nginx my http authentication for login page not working. 401 authentication page comes but after entered details it started downloding that page.<br />
Please send me the proper code for using supercache with http authorization for login page.</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7318</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Tue, 19 May 2015 00:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7318</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-7317&quot;&gt;Renzo&lt;/a&gt;.

Renzo,

It looks like you need to install a custom build of nginx that supports it. They have the details in the URL you provided under the header &quot;Check if your nginx has fastcgi_cache_purge module&quot;. If you can&#039;t find a custom build for your OS (looks like they only support Ubuntu / Debian) you can probably do a custom recompile, but that&#039;s something we tend to avoid with production servers.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-7317">Renzo</a>.</p>
<p>Renzo,</p>
<p>It looks like you need to install a custom build of nginx that supports it. They have the details in the URL you provided under the header &#8220;Check if your nginx has fastcgi_cache_purge module&#8221;. If you can&#8217;t find a custom build for your OS (looks like they only support Ubuntu / Debian) you can probably do a custom recompile, but that&#8217;s something we tend to avoid with production servers.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Renzo		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7317</link>

		<dc:creator><![CDATA[Renzo]]></dc:creator>
		<pubDate>Mon, 18 May 2015 23:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7317</guid>

					<description><![CDATA[Hi, how can I setup fastcgi_cache with conditional purging (https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/) In plesk. its going fine till i get this error when I copy this part;

	set $skip_cache 0;

	# POST requests and urls with a query string should always go to PHP
	if ($request_method = POST) {
		set $skip_cache 1;
	}   
	if ($query_string != &quot;&quot;) {
		set $skip_cache 1;
	}   

	# Don&#039;t cache uris containing the following segments
	if ($request_uri ~* &quot;/wp-admin/&#124;/xmlrpc.php&#124;wp-.*.php&#124;/feed/&#124;index.php&#124;sitemap(_index)?.xml&quot;) {
		set $skip_cache 1;
	}   

	# Don&#039;t use the cache for logged in users or recent commenters
	if ($http_cookie ~* &quot;comment_author&#124;wordpress_[a-f0-9]+&#124;wp-postpass&#124;wordpress_no_cache&#124;wordpress_logged_in&quot;) {
		set $skip_cache 1;
	}

	location / {
		try_files $uri $uri/ /index.php?$args;
	}    

	location ~ .php$ {
		try_files $uri =404; 
		include fastcgi_params;
		fastcgi_pass 127.0.0.1:9000;

		fastcgi_cache_bypass $skip_cache;
	        fastcgi_no_cache $skip_cache;

		fastcgi_cache WORDPRESS;
		fastcgi_cache_valid  60m;
	}

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

	location ~* ^.+.(ogg&#124;ogv&#124;svg&#124;svgz&#124;eot&#124;otf&#124;woff&#124;mp4&#124;ttf&#124;rss&#124;atom&#124;jpg&#124;jpeg&#124;gif&#124;png&#124;ico&#124;zip&#124;tgz&#124;gz&#124;rar&#124;bz2&#124;doc&#124;xls&#124;exe&#124;ppt&#124;tar&#124;mid&#124;midi&#124;wav&#124;bmp&#124;rtf)$ {
		access_log off;	log_not_found off; expires max;
	}

	location = /robots.txt { access_log off; log_not_found off; }
	location ~ /. { deny  all; access_log off; log_not_found off; }
}

I get this error : Invalid nginx configuration: nginx: [emerg] unknown directive &quot;fastcgi_cache_purge&quot; in /var/www/vhosts/system/masnoticia.com/conf/vhost_nginx.conf:38 nginx: configuration file /etc/nginx/nginx.conf test fail

How can I make it work?]]></description>
			<content:encoded><![CDATA[<p>Hi, how can I setup fastcgi_cache with conditional purging (<a href="https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/" rel="nofollow ugc">https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/</a>) In plesk. its going fine till i get this error when I copy this part;</p>
<p>	set $skip_cache 0;</p>
<p>	# POST requests and urls with a query string should always go to PHP<br />
	if ($request_method = POST) {<br />
		set $skip_cache 1;<br />
	}<br />
	if ($query_string != &#8220;&#8221;) {<br />
		set $skip_cache 1;<br />
	}   </p>
<p>	# Don&#8217;t cache uris containing the following segments<br />
	if ($request_uri ~* &#8220;/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml&#8221;) {<br />
		set $skip_cache 1;<br />
	}   </p>
<p>	# Don&#8217;t use the cache for logged in users or recent commenters<br />
	if ($http_cookie ~* &#8220;comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in&#8221;) {<br />
		set $skip_cache 1;<br />
	}</p>
<p>	location / {<br />
		try_files $uri $uri/ /index.php?$args;<br />
	}    </p>
<p>	location ~ .php$ {<br />
		try_files $uri =404;<br />
		include fastcgi_params;<br />
		fastcgi_pass 127.0.0.1:9000;</p>
<p>		fastcgi_cache_bypass $skip_cache;<br />
	        fastcgi_no_cache $skip_cache;</p>
<p>		fastcgi_cache WORDPRESS;<br />
		fastcgi_cache_valid  60m;<br />
	}</p>
<p>	location ~ /purge(/.*) {<br />
	    fastcgi_cache_purge WORDPRESS &#8220;$scheme$request_method$host$1&#8221;;<br />
	}	</p>
<p>	location ~* ^.+.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {<br />
		access_log off;	log_not_found off; expires max;<br />
	}</p>
<p>	location = /robots.txt { access_log off; log_not_found off; }<br />
	location ~ /. { deny  all; access_log off; log_not_found off; }<br />
}</p>
<p>I get this error : Invalid nginx configuration: nginx: [emerg] unknown directive &#8220;fastcgi_cache_purge&#8221; in /var/www/vhosts/system/masnoticia.com/conf/vhost_nginx.conf:38 nginx: configuration file /etc/nginx/nginx.conf test fail</p>
<p>How can I make it work?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7316</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Thu, 16 Apr 2015 01:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7316</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-7315&quot;&gt;Ben&lt;/a&gt;.

Thanks Ben! Spurred by your comment, I updated it today to quickly indicate that I&#039;ve been testing out the &quot;Better WordPress Minify&quot; plugin for the last couple of months. So far so good, though I find in general it&#039;s tricky to get minification working with everything (like Google seems to really want). This is partly because of their new CSS inlining requirements and mostly thanks to them wanting to force all Javascript to the footer, even if it uses document.onload.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-7315">Ben</a>.</p>
<p>Thanks Ben! Spurred by your comment, I updated it today to quickly indicate that I&#8217;ve been testing out the &#8220;Better WordPress Minify&#8221; plugin for the last couple of months. So far so good, though I find in general it&#8217;s tricky to get minification working with everything (like Google seems to really want). This is partly because of their new CSS inlining requirements and mostly thanks to them wanting to force all Javascript to the footer, even if it uses document.onload.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ben		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7315</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Sat, 11 Apr 2015 02:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7315</guid>

					<description><![CDATA[Hi,

I found this tutorial a big help but after all implementing the guide, i found out that WP Minify isnt working. but then again the guide gives me a +5 on google speed]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I found this tutorial a big help but after all implementing the guide, i found out that WP Minify isnt working. but then again the guide gives me a +5 on google speed</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nikita		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7314</link>

		<dc:creator><![CDATA[Nikita]]></dc:creator>
		<pubDate>Thu, 09 Apr 2015 12:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7314</guid>

					<description><![CDATA[Really Good Tutorial Regarding Caching And Page Speed...]]></description>
			<content:encoded><![CDATA[<p>Really Good Tutorial Regarding Caching And Page Speed&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan Schelew		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7313</link>

		<dc:creator><![CDATA[Jordan Schelew]]></dc:creator>
		<pubDate>Mon, 29 Dec 2014 20:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7313</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://websavers.ca/how-to-speed-up-wordpress#comment-7312&quot;&gt;Kingsley&lt;/a&gt;.

Thanks Kingsley!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://websavers.ca/how-to-speed-up-wordpress#comment-7312">Kingsley</a>.</p>
<p>Thanks Kingsley!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kingsley		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7312</link>

		<dc:creator><![CDATA[Kingsley]]></dc:creator>
		<pubDate>Sat, 27 Dec 2014 06:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7312</guid>

					<description><![CDATA[Great tutorial, this seems to work for me without 404 errors

Thanks]]></description>
			<content:encoded><![CDATA[<p>Great tutorial, this seems to work for me without 404 errors</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Artur		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7311</link>

		<dc:creator><![CDATA[Artur]]></dc:creator>
		<pubDate>Thu, 14 Aug 2014 19:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7311</guid>

					<description><![CDATA[Thanks God I found your post :D

I was serching for a way to enable this with ssh but
unfortunatly my host do not let me in as admin.

It was so easy, thank you :)

My pagespeed over google insights went from 33 to 75]]></description>
			<content:encoded><![CDATA[<p>Thanks God I found your post 😀</p>
<p>I was serching for a way to enable this with ssh but<br />
unfortunatly my host do not let me in as admin.</p>
<p>It was so easy, thank you 🙂</p>
<p>My pagespeed over google insights went from 33 to 75</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ryan Williams		</title>
		<link>https://websavers.ca/how-to-speed-up-wordpress#comment-7310</link>

		<dc:creator><![CDATA[Ryan Williams]]></dc:creator>
		<pubDate>Wed, 18 Dec 2013 15:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.websavers.org/?p=4717#comment-7310</guid>

					<description><![CDATA[Scratch that, turns out a vhost issue was the problem. I was (temporarily) accessing my domain via IP which seemed to trip up the Nginx proxy and just routed everything directly to Apache.]]></description>
			<content:encoded><![CDATA[<p>Scratch that, turns out a vhost issue was the problem. I was (temporarily) accessing my domain via IP which seemed to trip up the Nginx proxy and just routed everything directly to Apache.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk

Served from: websavers.ca @ 2026-05-12 18:02:37 by W3 Total Cache
-->