O'Reilly logo

PHP 5 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Caching systems

Caching systems can reduce the number of database and file system calls our code needs to make, by caching (creating a more easily accessibly copy of) commonly used data in the systems memory.

When we needed to access the contents of a commonly used file or frequently accessed database record, we would have the information cached, and simply check the cache when we need to access the data. For example, static pages (such as the about page, contact page, policies, and so on), as well as some of the templates used for these pages, are not going to change frequently.

We can adjust our system to update the cache every time we make a change to the page or template, and have the code that accesses the data simply check for it in the cache. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required