I have read the documentation for the CI Caching but still don’t understand much about it. What exactly does it do, and what is the use of caching a dynamic website?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From wikipedia:
A cache allows you to trade relatively expensive operations (complicated/multiple queries for example) for less expensive ones (reading a file / from memory). In dynamic websites a cache is often used just for that purpose (database IO to file IO).
Caching is useful when specific data is read often but updated seldom, and can be shared between many requests. Blog posts are an excellent example of this (created once, edited several times, read many times).