News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder's Blog:
Pre-caching FTW
January 07, 2011 @ 11:16:57

In this new post to his blog Kevin Schroeder suggests that there's something even better than doing the typical caching inline (request, write to cache) - pre-caching.

I just had an epiphany. I've talked about pre-caching content before and the benefits thereof before. But this is the first time I realized not only that there are benefits, but that doing it is BETTER than caching inline. Let me sum up... no, there is to much. Let me explain.

He gives an example of how a typical application might cache - when it finds a "miss" for the data it's trying to pull. A simple cache is easy, but what happens if it uses a configuration value that could change (like the username/password in his second example). Pre-caching would eliminate the risk since the setting would be known to be valid when the cache is generated.

0 comments voice your opinion now!
caching precache inline setting invalid miss


blog comments powered by Disqus

Similar Posts

Brian Swan's Blog: How to Change Database Settings with the PDO_SQLSRV Driver

Sebastian Bergmann's Blog: The Cost of Test Isolation (and other PHPUnit Features)

Abhinav Singh's Blog: MySQL Query Cache, WP-Cache, APC, Memcache - What to choose

International PHP Magazine: Poll Question: What is the Top Criterion for Scaling PHP?

Pierre-Alain Joye's Blog: Howto use a single php.ini for cli/cgi with htscanner, use 0.7.0 or later


Community Events





Don't see your event here?
Let us know!


release framework symfony laravel language tool introduction version community library mvc interview podcast voicesoftheelephpant update series security composer opinion package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework