<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster-Source &#187; Cache</title>
	<atom:link href="https://www.webmaster-source.com/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Cache Data with the WordPress Transients API</title>
		<link>https://www.webmaster-source.com/2011/01/24/cache-data-with-the-wordpress-transients-api/</link>
		<comments>https://www.webmaster-source.com/2011/01/24/cache-data-with-the-wordpress-transients-api/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 11:41:51 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3808</guid>
		<description><![CDATA[WP Engineer had an interesting post recently about a WordPress &#8220;Transients API&#8221; that is used for caching bits of data temporarily. I often use the Options API to cache things from external servers, such as Twitter statuses, so I don&#8217;t hit Twitter&#8217;s servers more often than necessary (which would slow down page loads). The Transients [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>WP Engineer had an interesting post recently about a <a href="http://wpengineer.com/2148/simple-cache-with-the-wordpress-transient-api/">WordPress &#8220;Transients API&#8221;</a> that is used for caching bits of data temporarily. I often use the Options API to cache things from external servers, such as Twitter statuses, so I don&#8217;t hit Twitter&#8217;s servers more often than necessary (which would slow down page loads). The Transients API is similar, but with the addition of an expiration field. This makes it a much easier solution, even without its other added benefit.</p>
<blockquote><p>Also of note is that Transients are inherently sped up by caching  plugins, where normal options are not. A memcached plugin, for example,  would make WordPress store transient values in fast memory instead of in  the database. For this reason, transients should be used to store any  data that is expected to expire, or which can expire at any time.</p></blockquote>
<p>It&#8217;s simple enough to use the API. You just call the set_transient(), get_transient() and delete_transient() functions where appropriate. You can read up on the usage over at <a href="http://wpengineer.com/2148/simple-cache-with-the-wordpress-transient-api/">WP Engineer</a> or the <a href="http://codex.wordpress.org/Transients_API">WordPress Codex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/01/24/cache-data-with-the-wordpress-transients-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing the Caching of Dynamic Functions in WP Super Cache</title>
		<link>https://www.webmaster-source.com/2009/11/19/preventing-the-caching-of-dynamic-functions-in-wp-super-cache/</link>
		<comments>https://www.webmaster-source.com/2009/11/19/preventing-the-caching-of-dynamic-functions-in-wp-super-cache/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 11:40:38 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2740</guid>
		<description><![CDATA[WP Super Cache is commonly used to speed up WordPress blogs and reduce server load. In essence, it stores static HTML copies of pages on your blog so they will load faster the next time they are accessed. It works fairly well, but with one caveat that may be frustrating at times: The pages don&#8217;t [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> is commonly used to speed up WordPress blogs and reduce server load. In essence, it stores static HTML copies of pages on your blog so they will load faster the next time they are accessed. It works fairly well, but with one caveat that may be frustrating at times: The pages don&#8217;t change until the cache expires (every 30-60 minutes or so) and the static page is updated. That makes it hard to do some things<a href="http://wordpress.org/extend/plugins/ozh-who-sees-ads/"></a> where you need to process information unique to each user, such as checking HTTP referrer headers and serving ads to visitors coming from search engines.</p>
<p>Fortunately, there is a way around it in some cases. If you have a function in your template, you can do something like this:</p>
<pre class="brush: php; title: ; notranslate">
&lt;!--mfunc function_name( 'parameter', 'another_parameter' ) --&gt;
 &lt;?php function_name( 'parameter', 'another_parameter' ) ?&gt;
 &lt;!--/mfunc--&gt;
</pre>
<p>You take a function call and surround it by the &#8220;mfunc&#8221; comments, in which the first contains a duplicate of the function. This will (somehow) instruct WP Super Cache to allow the function to execute, even in the static cached version of the page.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/11/19/preventing-the-caching-of-dynamic-functions-in-wp-super-cache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Beyond Super Cache: W3 Total Cache</title>
		<link>https://www.webmaster-source.com/2009/10/15/beyond-super-cache-w3-total-cache/</link>
		<comments>https://www.webmaster-source.com/2009/10/15/beyond-super-cache-w3-total-cache/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 11:09:15 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2641</guid>
		<description><![CDATA[Donncha O Caoimh&#8217;s WP Super Cache plugin has become very popular in the WordPress community, especially with bloggers with medium-traffic blogs on shared hosting plans. But what if you&#8217;re running on your own server, be it VPS, dedicated, or something else along those lines? What can you do to squeeze some extra performance out of [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Donncha O Caoimh&#8217;s <a href="http://ocaoimh.ie/wp-super-cache/">WP Super Cache</a> plugin has become very popular in the WordPress community, especially with bloggers with medium-traffic blogs on shared hosting plans.</p>
<p>But what if you&#8217;re running on your own server, be it VPS, dedicated, or something else along those lines? What can you do to squeeze some extra performance out of your high-traffic blog?</p>
<p>Enter <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>, a plugin that the infamously slow-loading blog Noupe <a href="http://www.noupe.com/spotlight/why-noupe-com-is-loading-pretty-fast.html">has recently started using</a> to combat the sluggishness that their constant social media hits cause. It can do a lot of things, including:<span id="more-2641"></span></p>
<ul>
<li>Offloading static content to a CDN, if you have one.</li>
<li>Minifying and compressing your CSS and JavaScript files, and caching them in memory or disk.</li>
<li>Caching RSS in memory or disk.</li>
<li>Ensuring that browsers cache things, such as images, CSS and JavaScript on their end for future page loads.</li>
<li>Caching database objects in memory.</li>
</ul>
<p>The plugin&#8217;s biggest feature is probably its support of various memory caching systems, such as memcached, APC, and XCache to store things in memory. This makes things very fast. Hard disks are a major bottleneck in servers. If you put frequently requested information in RAM, it can be served a lot faster. Try visiting a page on Noupe. It may load a little slow the first time if the page hadn&#8217;t been viewed recently, so you may have to load it again a second time. Things are real fast once they&#8217;re in the RAM cache.</p>
<p>I&#8217;m thinking of trying it out for myself in the future, once I go through with my plans to move from Apache to NGINX server software, which should free-up a bit of my RAM.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/10/15/beyond-super-cache-w3-total-cache/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Saving Bandwidth and Speeding Up Your Site With GZIP and Browser Caching</title>
		<link>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/</link>
		<comments>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 11:42:23 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=2570</guid>
		<description><![CDATA[There are a couple of easy adjustments you can make to your web server in order to decrease page loading times, save bandwidth, and reduce load on the server. All you have to do is add a couple of code snippets to either your Apache server configuration file (httpd.conf or apache2.conf) or an .htaccess file. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>There are a couple of easy adjustments you can make to your web server in order to decrease page loading times, save bandwidth, and reduce load on the server. All you have to do is add a couple of code snippets to either your Apache server configuration file (httpd.conf or apache2.conf) or an .htaccess file.</p>
<p>Note that these require that your server have certain modules installed for this to work. You will need either mod_deflate or mod_gzip for GZIP compression and mod_expires for the browser caching trick.</p>
<h3>Enable Browser Caching</h3>
<p>When a web browser loads a page, it checks each item it requests (JavaScript, CSS, images, etc) against its local cache. If an item, say the stylesheet, hasn&#8217;t <em>expired</em> yet, then it will load the local copy instead of requesting a new one. Now if you were to instruct your server to set the expiration time for images, CSS, and JavaScript files to one month from the present, users viewing multiple pages of your site (even across multiple days) won&#8217;t tax your resources as much, as they will use the copies of your stylesheets and images that have already been downloaded.<span id="more-2570"></span></p>
<p>Insert this into your .htaccess file or Apache config, restarting Apache if you chose the latter:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;FilesMatch &quot;\.(ico|flv|jpe?g|png|gif|js|css|swf)$&quot;&gt;
 ExpiresActive On
 ExpiresDefault &quot;access plus 1 month&quot;
&lt;/FilesMatch&gt;
</pre>
<p>Now any file with an extension of ICO, JPG, JPEG, PNG, GIF, JS, CSS, SWF will be set to expire one month from the time the browser caches it.</p>
<h3>GZIP Compression</h3>
<p>Now wouldn&#8217;t it be nice if you could cut down on the <em>size</em> of the file? There&#8217;s no point in doing it for images (which are already compressed) but you can greatly reduce the size of text-based files (HTML, JavaScript, CSS) by having the server compress them before sending them out.</p>
<p>Add this to your .htaccess or Apache config (restarting Apache if you chose the latter) as before:</p>
<pre class="brush: plain; title: ; notranslate">
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \
 no-gzip dont-vary
SetEnvIfNoCase Request_URI \
 \.(?:exe|t?gz|zip|bz2|sit|rar)$ \
 no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</pre>
<p>This beast does several things. The first directive tells mod_deflate to get to work. The next several lines determine how mod_deflate will work. It will not affect GIF, JPG, PNG images or already-compressed archive files (e.g. ZIP or RAR), as there is no real benefit in doing so. The final three &#8220;BrowserMatch&#8221; lines deal with Internet Explorer&#8217;s funkiness.</p>
<h3>Is it Working?</h3>
<p>If you have <a href="http://getfirebug.com/">Firebug</a> and the handy <a href="http://code.google.com/speed/">Google Page Speed</a> extension installed, you can run a quick test to make sure everything is working right. There should be two lines mentioning &#8220;Leverage browser caching&#8221; and &#8220;Enable gzip compression.&#8221; They should be checked-off instead of having a red icon.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-2572 imgborder" title="Firebug Speed Test: GZIP Compression" src="//www.webmaster-source.com/wp-content/uploads/firebug-gzip-compression.jpg" alt="Firebug Speed Test: GZIP Compression" width="548" height="174" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/09/23/saving-bandwidth-and-speeding-up-your-site-with-gzip-and-browser-caching/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Easy PHP Caching: Speed-Up Dynamic Content</title>
		<link>https://www.webmaster-source.com/2009/03/12/easy-php-caching-speed-up-dynamic-content/</link>
		<comments>https://www.webmaster-source.com/2009/03/12/easy-php-caching-speed-up-dynamic-content/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 12:20:11 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=1922</guid>
		<description><![CDATA[Caching dynamic content can save a lot of proceesing power, potentially saving a server from total meltdown under extremely high traffic loads. The popular WP Super Cache plugin has demonstrated this, helping blogs on small shared hosts survive the &#8220;Digg Effect&#8221; longer. If a script&#8217;s output doesn&#8217;t change every time a page is loaded, does [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Caching dynamic content can save a lot of proceesing power, potentially saving a server from total meltdown under extremely high traffic loads. The popular <a href="http://ocaoimh.ie/wp-super-cache/">WP Super Cache</a> plugin has demonstrated this, helping blogs on small shared hosts survive the &#8220;Digg Effect&#8221; longer.</p>
<p>If a script&#8217;s output doesn&#8217;t change every time a page is loaded, does it need to be processed each time? Probably not. You can cache a page, or a section of a page, for an appropriate amount of time, and serve it up instead.</p>
<p>It&#8217;s a lot simpler to implement caching than you would think. It&#8217;s just a matter of using <a href="http://www.webmaster-source.com/2009/03/02/introduction-to-php-output-buffering/">output buffering</a>, a little bit of basic file I/O, and watching the server&#8217;s timestamp.</p>
<p>PaperMashup.com has <a href="http://papermashup.com/caching-dynamic-php-pages-easily/">a short article on how to apply a basic cache to your scripts</a>.</p>
<blockquote><p>It’s not a good idea to go away and cache your entire site, you need to think about which pages receive high traffic, and which pages make a number of database requests. Static HTML pages aren’t going to see a benefit from caching and may in fact be served slower due to PHP invoking the request to the cached version.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2009/03/12/easy-php-caching-speed-up-dynamic-content/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>On WP Super Cache</title>
		<link>https://www.webmaster-source.com/2007/11/07/on-wp-super-cache/</link>
		<comments>https://www.webmaster-source.com/2007/11/07/on-wp-super-cache/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 16:58:42 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/2007/11/07/on-wp-super-cache/</guid>
		<description><![CDATA[Everyone&#8217;s been talking about WP Super Cache, the new WordPress plugin based off the old WP-Cache 2. By storing static copies of your posts for a predetermined amount of time (then refreshing them after they expire), it reduces server load by a huge margin, which hopefully keeps your site from going down if you get [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Everyone&#8217;s been talking about <a href="http://ocaoimh.ie/wp-super-cache/">WP Super Cache</a>, the new WordPress plugin based off the old WP-Cache 2. By storing static copies of your posts for a predetermined amount of time (then refreshing them after they expire), it reduces server load by a huge margin, which hopefully keeps your site from going down if you get &#8220;Dugg.&#8221;</p>
<p>It&#8217;s a great idea, but I&#8217;m not about to install it yet. As it says on the website, <em>&#8220;dynamic content such as that within the sidebar, will only refresh when the cached pages are refreshed.&#8221;</em> That, of course will cause major problems with some plugins. It&#8217;s hard to explain why those plugins won&#8217;t work, but I can give you some examples.<span id="more-276"></span></p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/popularity-contest/">Popularity Contest</a></li>
<li><a href="http://theundersigned.net/2006/06/landing-sites-11">Landing Sites</a></li>
</ul>
<p>Basically plugins that need to run PHP routines on every pageload. Plugins like <a href="http://wordpress.org/extend/plugins/share-this/">Share This</a> would work fine, because they always output the same HTML. Popularity Contest is a great plugin that is widely used across the blogosphere, but I can&#8217;t imagine it being possible for it to work with WP Super Cache.</p>
<p>Interestingly, Holy Shmoly (where the WP Super Cache download is located) is running the caching plugin&#8230;yet there is a &#8220;popular posts&#8221; list in the sidebar. Does Popularity Contest somehow work with WP Super Cache&#8230;or is the list just a static part of the template? I don&#8217;t see how Popularity Contest could work with Super Cache, as it counts the number of post views as they happen. The original <a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache 2</a> had a feature to make part of a page dynamic&#8230; Does Super Cache have that ability as well?</p>
<p>On the up side, WP Super Cache makes your blog wicked fast. In the past few days, there were a few blogs using the caching plugin on the Digg front page. They stayed up, and ran reasonably fast. Now that the worst part of the Digg Effect is over, they run a <em>lot</em> faster than a normal WP installation.</p>
<p>I like the idea of caching this blog, but I&#8217;m not about to do it unless I can keep Popularity Contest.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2007/11/07/on-wp-super-cache/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-29 11:44:10 by W3 Total Cache
-->