News Feed
Sections




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

Mike Wallner's Blog:
Dropping server load with HTTP caching
January 27, 2012 @ 09:43:04

Mike Wallner has shared a quick and easy HTTP caching technique in a new post to his blog today. The key is in using the PEAR HTTP_Header package.

Ever watched youself browsing e.g. a web forum? Noticed that you viewed the same page several times? Well, this means extraordinary and useless load for your server if there's no caching mechanism implemented in the web application. Even if there is some file or db cache you can still improve performance with implementing some http cache.

With a few simple lines of code using HTTP_Header, you can tell your scripts how long to set the "expires" header to on your requests. This increment (in seconds) is relayed to the browser to tell it when to next fetch the page and not reload from cache.

0 comments voice your opinion now!
http cache pear package httpheader tutorial


blog comments powered by Disqus

Similar Posts

Android Hive: Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL

DevShed: Working with Prepared Queries with PDO Objects in PHP 5

Mike Purcell's Blog: Symfony - sfGuardPlugin - Use Email Instead of Username

The Tutorial Blog: Adding security to CodeIgniter forms with a custom library class

Matthew Weir O'Phinney's Blog: Phly_Struct? no, Phly_Hash...


Community Events

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


feature framework podcast series extension api laravel5 opinion library introduction community language voicesoftheelephpant interview release development unittest laravel threedevsandamaybe wordpress

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