Smarty PHP Template Programming and Applications
  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
  Index > Chapter 9
Book Contents

Preface
Chapter 1: Introduction to Smarty
Chapter 2: Smarty Site Architecture
Chapter 3: What Designers Need to Know
Chapter 4: Creating a Template
Chapter 5: Advanced Templating
Chapter 6: Smarty Functions
Chapter 7: Debugging for Designers
Chapter 8: Built-in Smarty Variables and Methods
Chapter 9: Caching and Performance
Chapter 10: Extending Smarty with Plug-ins
Chapter 11: Filters
Chapter 12: Internationalization

Index

Free Content
Chapter 6: Smarty Functions[345 KB PDF]

Code Download

Download
Smarty Cheat Sheet


Download PDF Version [285 KB]

Download GIF Version [304 KB]


 

 

Chapter 9: Caching and Performance

Caching is a technique that is used very frequently by programmers to avoid calculating or generating the same output repeatedly. Instead, function results or even output are recorded and saved for later reuse. Usually caching is done by saving the appropriate information in special files on disk, and then retrieving it later, but you could just as well cache things in memory.

  • Chapter 9: Caching and Performance
    • Caching in Smarty
    • Dynamically Caching Template Sections
    • Clearing the Cache
    • Advanced Caching Features
    • Using Cache Groups
    • Clearing a Cache Group
    • Avoiding the Cache
    • Creating a Custom Cache Handler
    • Optimizing Smarty Applications
    • Profiling PHP
    • Designing Sites for Effective Caching
      • The Last-Modified and ETag Headers
      • The Expires Header
      • The Cache-Control Header
    • Tools: ApacheBench (ab)
    • Tools: Xdebug
    • Tools: WinCacheGrind
    • Summary

     

 

 

 

 

Paperback 250 pages
Released: April 2006
ISBN: 190481140X



eBook Version Also Available
Buy the book & eBook together and get 80% off the eBook

 

 

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 2006. All rights reserved. Terms and Conditions