cache

Server & Hosting

A cache is a temporary storage space that holds previously generated content from a website so that it does not have to be recalculated on the next request.

When a page is first accessed, the server generates a complete HTML file from PHP code and database queries. The cache stores this file for a defined period, known as the TTL (Time to Live). Subsequent visitors receive the stored version directly, without the database and PHP needing to be processed again. This reduces the load on the server and noticeably shortens loading times . A distinction is made between server cache, browser cache, and CDN cache, which all work together.

Example: A homepage that takes 900 milliseconds to load without caching delivers the same page in under 100 milliseconds with page caching enabled. With 5.000 visitors daily, this reduces the server load by more than 70 percent because only a fraction of the requests reach the database.

Activate caching via a plugin or directly at the server level, set the TTL to match the update frequency of your content, and clear the cache after each content change so that visitors do not see an outdated version.

Back to the glossary