Book Image

Building a Web Application with PHP and MariaDB: A Reference Guide

By : Sai S Sriparasa
Book Image

Building a Web Application with PHP and MariaDB: A Reference Guide

By: Sai S Sriparasa

Overview of this book

Table of Contents (17 chapters)
Building a Web Application with PHP and MariaDB: A Reference Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction to caching


Caching can be defined as the process of making popular data highly available by temporarily storing the data in memory. This allows responding to a request faster by retrieving data from the memory rather than going onto the disk. There are three types of caching, as follows:

  • Caching in the database

  • Caching in the application

  • Content caching

Let's begin with database caching.