Purgely
A plugin to manage Fastly caching behavior and purging.
Consider an alternative
Purgely shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 10 years ago, and scores 30/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in 10 years
- Only tested up to WordPress 4.3 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Purgely stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| cache invalidation | >100 |
| caching | >100 |
| fastly | #63 |
| page cache | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Purgely
From the official readme · v1.0.1Description
Purgely manages caching behavior for WordPress sites using Fastly as an edge caching solution. The plugin exposes useful
APIs to help control how pages on your site are cached, as well as provides sane defaults to make this a plug and play
solution for Fastly cache management.
The plugin handles the following:
- Sets the
Surrogate-Controlheader to control the expiration time for pages - Sets the
stale-while-revalidateandstale-if-errorCache-Controldirectives for managing these special Fastly
behaviors - Set groups of
Surrogate-Keysfor all pages to provide purging across multiple pages with one command - Provides invalidation of posts and related posts on save
Each of these items have sane defaults with ways to override them and configure them to your liking.
Additionally, the plugin exposes a WP CLI command to provide more flexible purging options.
Installation
Manual installation
- Upload the plugin directory to
/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
WP CLI installation
- Run
wp plugin install --activate purgely
Configuration
Purgely provides a number of constants that can be used to control the behavior of the plugin and Fastly’s cache. Users
who wish to change these values should define the constants in wp-config.php.
After installing, you should define PURGELY_FASTLY_KEY and PURGELY_FASTLY_SERVICE_ID in wp-config.php. The plugin will work without them; however, you will not be able to purge by surrogate key or purge all without configuring these options. To define them copy the following code to your wp-config.php file, update the key to use your key, and the service ID to match the fastly service you’re using:
`
define( ‘PURGELY_FASTLY_KEY’, ’39c4820390d8f050giweda50268c7583′ );
define( ‘PURGELY_FASTLY_SERVICE_ID’, ‘abcdefghijklmn1234567890’ );
`
Configuring other constants is similarly done by defining the constant in wp-config.php. All constants are explained
below.
PURGELY_API_ENDPOINT
Defines the API endpoint for Fastly. This should not usually need to be changed, but is added in the event that Fastly
decides to use a different API endpoint, or if there is a need for a user to have a special endpoint.
default: (string) ”
PURGELY_ALLOW_PURGE_ALL
Determines whether or not the plugin can issue a purge all request. Purge all can have dire consequences for a website.
As such, this behavior is disabled by default. If can be turned on by setting this value to true.
default: (bool) false
PURGELY_ENABLE_STALE_WHILE_REVALIDATE
Determines whether or not the plugin sets the stale-while-revalidate directive for the Cache-Control header. Setting
this value to false will turn off the stale-while-revalidate behavior. Note that you can manually control this
behavior via the functions exposed in the plugin regardless of this configuration option. This option only controls the
default plugin behavior.
default: (bool) true
PURGELY_STALE_WHILE_REVALIDATE_TTL
Sets the TTL for the stale-while-revalidate directive in seconds. The value instructs Fastly to continue serving stale
content while new content is generated for the duration of the value that is set.
default: (int) 86400
PURGELY_ENABLE_STALE_IF_ERROR
Determines whether or not the plugin sets the stale-if-error directive for the Cache-Control header. Setting
this value to false will turn off the stale-if-error behavior. Note that you can manually control this
behavior via the functions exposed in the plugin regardless of this configuration option. This option only controls the
default plugin behavior.
default: (bool) true
PURGELY_STALE_IF_ERROR_TTL
Sets the TTL for the stale-if-error directive in seconds. The value instructs Fastly to continue serving stale
content while the origin site is serving an error for the duration of the value that is set.
default: (int) 86400
PURGELY_SURROGATE_CONTROL_TTL
Sets the TTL for the Surrogate-Control header in seconds. This value is the default TTL for all pages on your site,
unless it is cached within the app. Changing this value changes the value for the whole site.
default: (int) 300
Changelog
Update key saniziation to allow all capital letters, not just A-B.
1.0.1
- Update key saniziation to allow all capital letters, not just A-B.
1.0.0
- Initial release.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Purgely alternatives
All cache invalidation plugins →| Rank | Plugin | Active installs |
|---|---|---|
| 2 |
|
<10 |
FAQ
Purgely: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Purgely free?
Yes. Purgely is free to download and use from the official WordPress.org plugin directory.
Is Purgely safe to use in 2026?
Purgely shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 10 years ago, and scores 30/100 on our health check.
How many websites use Purgely?
Purgely is active on 10+ WordPress websites and has been downloaded 15,938 times since it launched in January 2016. It was downloaded 61 times in the last 30 days.
Does Purgely work with WordPress 7.1?
Purgely is officially tested up to WordPress 4.3.34, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Purgely last updated?
The latest version, 1.0.1, was released on June 15, 2016 (10 years ago).
Who makes Purgely?
Purgely is developed and maintained by Zack Tollman.
What are the best alternatives to Purgely?
The most popular alternatives to Purgely are ByteCoreStack (<10 installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
