-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Currently, the purge by IDs functionality only supports the default post type.
This means that when trying to purge cache for pages or custom post types, the plugin doesn’t include their paths in the invalidation request.
In some cases, related content (e.g., a page that displays a list of posts or custom post type entries but is not an archive) may remain cached even after updates, since the purge process after update doesn’t cover these cases. Would be great if possible, to purge manually.
Steps to reproduce:
- Create a page (e.g., with ID 4583).
- Attempt to purge the cache by ID.
- Notice that only / is purged, and the actual page path is ignored.
Expected behavior:
The purge by IDs should support any registered post type, not just post, so that the correct paths are invalidated.
It’s common for sites to have pages or custom post types tied to dynamic content. Without proper purge support, outdated cache can cause inconsistencies for end users.
A Pull Request has been submitted to address this issue by extending purge support to all post types: #173