Skip to content

Cache module overview

Overview

Cache module aims to speed up the application by caching the whole page/response or it's parts and then reusing that cached data instead of generating it again. It's handy for some heavy operations like time-consuming database queries, image generation, etc.

While it's powerful, it's also dangerous as it requires developers and other stakeholders to keep in mind to use proper cache cleanup triggers. Otherwise, the application may show outdated data, or (what is worse), personal data of other visitors.

Server Response cache

Server Response cache is a mechanism to cache the whole response (HTML or JSON or XML) and serve it to the next visitor.

Value cache

Value cache is a mechanism to cache some data (usually numbers) that the application can reuse between requests.