Clearing the WordPress Hosting Cache


Browse by products and services

  • Applies to: WordPress Hosting
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: Account Center access, SSH access

Overview

A cache is stored data used to serve content for future requests. This helps improve the speed and efficiency of a site. However, a cache can occasionally serve you content that is different from the live site. For example, you may make an update to your site, but don't see the changes right away when you pull up the site in a browser. In these cases, it can be helpful for troubleshooting to clear the cache on your site. The WordPress Hosting service does include some built-in caching systems.

This guide will outline how to clear your WordPress Hosting cache. It's important to keep in mind that caching can occur in layers at the server, ISP, your local device, etc. Any caching occurring outside of this guide would need to be troubleshooted with your developer.

Additionally, these instructions only apply the WordPress Hosting Servers (Premium WordPress or Managed WordPress). This guide is NOT applicable for the Grid or VPS servers.

Instructions

Method 1 - WordPress Dashboard

1. Log into your WordPress Dashboard (http://example.com/wp-admin)
2. Click on the (mt) Media Temple icon at the top of the WordPress Dashboard.

mwp1.png

3. Click on the Flush Cache icon.

Screen_Shot_2018-09-25_at_11.37.34_AM.png

4. A menu should appear to confirm that the cache has been successfully cleared.

mwp2.png

Method 2 - object-cache.php

1. Connect to your server via SSH.
2. Navigate to the /wp-content folder using the following command:

cd html/wp-content/

3. Once in the /wp-content folder, use the ls command to check if there is a file called object.cache.php:

ls -al

objectcache.png

4. If object-cache.php is present, then you can disable the file by renaming it with the mv command:

mv object-cache.php object-cache.php.abc

objectcache2.png

These would be the two primary methods of clearing a cache for the WordPress Hosting Servers. If you believe that a caching issue is still present, this would imply the cache is held elsewhere. You may need to try alternative methods such as clearing/disabling third-party applications with caching, clearing your browsers cache, or flushing your DNS cache.