All Pressable sites include several layers of caching enabled by default including object caching, page caching (Batcache), and our CDN. These caches can be managed from the my.pressable.com control panel. And now with the Pressable Cache Management Plugin, they can also be managed from the WordPress admin area as well!
The Pressable Cache Management Plugin
To install the plugin you can download it from here.
Then go to WordPress admin > Plugin > Add New > Upload Plugin.
Object caching and Batcache can both be managed through the first tab of the cache management plugin.
The object cache stores database queries in memory using Memcache. You can read more about that here →. To flush this cache, simply press the “Flush Cache” button (note: this will also flush Batcache).
From the object caching tab we can find several options to assist in the control and management of Batcache (static page caching).
By default, a cached render of a page is stored for five minutes, at which point a new cached version is created. You can extend the length of time a cached render is saved to one day by enabling this option.
Flush On Update
Automatically flush the cache when the theme or plugins are updated.
Flush On Edit
Automatically flush the cache when pages or posts are modified and saved.
Flush For Single Pages
This enables the option to flush Batcache on a page-by-page basis.
Once enabled, you will see the option to flush the cache from the Pages/Posts area in wp-admin:
And also from the wp-admin bar when viewing the page:
In order to manage the CDN through this plugin, you will need to configure your API Authentication settings.
Client ID/Client Secret
Before you can obtain these values, you must first create a new API Application, ensuring that the appropriate permissions have been enabled. The minimum required permissions are read/write on “Sites”. A new API application can be created from this page →.
Once your API app is created, you can copy the client ID and client secret to the plugin settings. This can be reused across all sites in your account.
The Site ID is typically filled in automatically for new sites on our platform. But older sites may not have it entered, as well as sites that were overwritten by a migration. To locate your site ID, navigate to the single-site management page in my.pressable.com. The id will be in the address bar. For example: https://my.pressable.com/sites/1193458
Several controls over the CDN are available in the CDN tab, but before you can use them you will need to create API keys and add those to the API Authentication tab. Until you do, the CDN screen will be disabled.
Once your API keys are configured, you will have the option to enable or disable the CDN.
When the CDN is enabled, further options are displayed. The CDN cache can be purged by pressing the following button:
Further options for controlling the CDN can be toggled on-and-off.
Extend the cache-control header
One option is to modify the cache-control: max-age header for assets served from the CDN. By default, this header is 7 days. By enabling this option, it is extended to 10 years.
Exempt file types from the CDN
Exempt individual files
Specific files can be exempted from the CDN by entering them here. For example: style.css
Separate multiple file names with a pipe. For example: style.css|jquery.js
Do you want to hide the Pressable logo/branding from the cache management plugin? We built a hidden control panel to allow you to do that! Simply click on the heart icon in the line “Built with ♥ by The Pressable Customer Support Team.” found at the bottom of the page.
Disabling the branding will remove our logo and name from the various tabs.
The plugin needs to be activated on a per-site basis. Otherwise, network activation will ignore all but the primary site in the network.