Object caching is a vital feature that can enhance your website's performance by reducing server load and speeding up data retrieval. This article explains how object caching works, its benefits, and the steps to enable it on your 10Web-hosted site.
How does object caching work
A WordPress website operates using many PHP objects, which are created, executed, and deleted dynamically. These processes can load your server, particularly during high-traffic periods, potentially slowing down your site and leading to errors. Object caching optimizes performance by storing query results from the first request and reusing them for subsequent identical requests. Here’s how it works step by step:
- A user accesses your website, and their browser sends an HTTP request to your web server.
- Upon receiving and approving the request, the server delivers the required data or resources to the browser.
- If object caching is enabled, the server creates a copy of the query result and stores it in the cache.
- For any subsequent identical requests, the server retrieves the data from the cache instead of querying the database again. If no cached copy exists, the server generates a new query result, stores it for future use, and sends it to the browser.
By reducing redundant database queries, object caching speeds up data delivery improves PHP execution times, and optimizes overall website performance.
What’s the difference between object cache and page cache?
Object cache
Object caching is a server-side method that stores the results of database queries, improving back-end efficiency and reducing repeated queries for dynamic content.
Page cache
Page caching is a server-side method that stores fully rendered pages, including HTML and static content, to speed up front-end delivery for users.
Note:
For front-end page caching, 10Web offers the Speed Booster plugin and Cloudflare Enterprise CDN cache (available as a paid add-on).
How to enable object caching on your 10Web-hosted site
10Web’s hosting platform includes a built-in persistent object caching feature.
Note:
At present, 10Web only supports its native object cache solution. Third-party persistent caching tools like Redis or Memcached are not supported.
To enable object caching on your 10Web-hosted site:
- Access your 10Web Dashboard.
- Click on the Manage button next to your site.
- Navigate to Hosting Services > Tools.
- Toggle the Object cache switch to enable it.