News Feed
Sections




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

Unravel the Music Blog:
Partial-page caching with Memcached and PHP in 3 easy steps
May 18, 2009 @ 12:29:06

On the Unravel the Music blog there's a recent post about using memcached to held reduce the load on your PHP applications by caching certain parts of your pages.

Many framework and standalone PHP developers are given options to do full-page caching but partial page caching is rarely an option. Many times a sidebar or a footer that is loaded with dynamic content can be cached for 5, 10, or even 30 minutes without needing to read from the database again. This can drastically reduce the load on the server as query results for certain portions of your page are stored temporarily. [...] Memcached can store queries that have been processed and the bits of HTML that go with their presentation. Read on for a detailed example.

Once the memcache functionality is installed, its a snap to get right into caching your content. The two examples - pushing data in and pulling it back out - show how to cache a bit of HTML content to be used later.

0 comments voice your opinion now!
query mysql page partial memcache cache


blog comments powered by Disqus

Similar Posts

Blond R's Blog: Set up IIS 7 w/ MySQL and PHP 5

Greg Bulmash's Blog: Creating A Simple Rating Script With PHP And MySQL

Irakli Nadareishvili's Blog: Install PECL Memcache with XAMPP and PHP4

Job Posting: Electronic Medical Records Seeks Experienced PHP / MySQL Programmer (Philadelphia, PA)

DeveloperTutorials.com: Scraping Links With PHP


Community Events

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


psr7 library extension api interview podcast unittest framework laravel community voicesoftheelephpant laravel5 language development series opinion introduction conference release video

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