Pagely aggressively caches your page output and your .css, .js and images. These assets can be cached for hours or weeks depending on the type. Some useful things to know.
When Is the Cache Automatically Cleared?
- Whenever you update a post or page, the cache for that post and your homepage are automatically cleared.
- Whenever you add a new post or page, the cache for the homepage and your /feed is automatically cleared.
When Does the Cache Expire?
- Pages are cached for around 30 minutes.
- CSS, JS and Images are handled by PressCDN and are cached for 2 weeks.
- Staging urls like s12345.p20.sites.pressdns.com are not cached at all but might still use the PressCDN.
Please note that browser caching can be set up to change the way the browser is storing these files and would require you to clear your browser cache. For more information on clearing your browser cache, take a look at the appropriate documentation for your browser:
How Do I Manually Clear All Caches?
There are 2 ways to nuke everything in cache.
Manually Clearing Your Cache from WordPress
- Log into your WordPress site.
- On the left side WordPress admin menu, click on Pagely, then on App Dashboard.
- Press the Purge All Caches + CDN button.
Manually Clearing Your Cache from the Atomic Control Panel
- Log into your Pagely account and access the Atomic control panel.
- Click on CDN on the left side menu to access the CDN page.
- Locate the URL that you want to clear the cache on, and click the Edit icon to the right of the URL.
- Finally, click on the Purge Cache button.
When the cache has been successfully purged, the Last Purged date will update to the current timestamp.
Manually Clearing the Object Cache with WP-CLI
If you want to use WP-CLI to clear your cache, you can use the following command.
wp cache purge
Additional information on flushing your WordPress site's cache can also be found within our article on clearing your WordPress site's cache with WP-CLI.
Manually Clearing the Nginx Cache with WP-CLI
After clearing the object cache, you'll likely also want to clear your Nginx cache as well. To do so, use the following command:
wp pagely purge-nginx '*'
Purging CDN Assets with WP-CLI
After you've cleared your object cache and Nginx cache, you'll also likely want to clear your PressCDN assets as well. To do so, use the following command:
wp pagely purge-cdn
Help! My Cache Didn't Clear!
If you manually purged your site's cache but still aren't seeing your changes, this is usually caused by another layer of caching being enabled.
If you're using another service in front of your site, such as Cloudflare, you may also need to clear your cache there as well. For more information on clearing Cloudflare's cache, take a look at Cloudflare's documentation on purging cached resources.