PEAR Articles
  Home arrow PEAR Articles arrow Caching with PEAR::Cache
Try It Free
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PEAR ARTICLES

Caching with PEAR::Cache
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2004-03-19

    Table of Contents:
  • Caching with PEAR::Cache
  • Installing Pear::Cache
  • Defining the Cache
  • Implementing a Framework
  • Combined Code
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Try It Free
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Caching with PEAR::Cache


    (Page 1 of 6 )

    So, your web site is starting to get popular? With popularity comes more page request, and with more page requests comes higher server load. Don't get in a situation where you can't serve up the pages. Build your application to handle the load. That's where PEAR::Cache comes in. In this tutorial, Timothy will show you how to use it.

    A PHP script must be compiled and processed by the Zend engine regardless if its results are the same each time it's called. The server needs to work harder to generate and display the requested page as your PHP applications become more complex. As your web site attracts more visitors, the server works harder more often. The server's performance may eventually begin to degrade.

    If it's known that the output will be the same each time a script will be run, there's no need for the server to reprocess it. The load on the server can be reduced if the output of such scripts are stored and returned later for matching requests. This storing is known as "caching."

    Caching is not a new idea; caching exists in web browsers, proxy servers and other special applications. In PHP, we can reap the benefits of caching output in our scripts by using Pear::Cache.

    More PEAR Articles Articles
    More By bluephoenix


       · For all my proficiency with PHP the need to do command line stuff has so far passed...
       · Dear AllI have defined variables as follow in an data entry formprod1...
       · Dear AllI have defined variables as follow in an data entry formprod1...
       · Essentially all of PHP setup and maintenance is conducted on a command line. You'll...
       · This type of question should really be posed in the forum. There are many people...
       · "Net_Socket is part of the default Pear installation so..."...
       · study
       · i think it's a case to case basis Jayden. what platform are you using?
     

    PEAR ARTICLES ARTICLES

    - Using Web Service APIs (Amazon and Yahoo!) w...
    - Database Abstraction with MDB2 from PEAR
    - The PEAR Package Tour: PEAR Basics
    - Caching with PEAR::Cache
    - Introduction to PEAR
    - The PEAR ITX Templating System





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway