-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: User-defined URIs to purge with post cache #111
Comments
Awesome idea! Agree 😺 |
Temporary WorkaroundIf you need to clear a specific Post / Page whenever the cache is automatically cleared, you can do this by adding some code to your theme's |
I also would like to see this feature added to the plugin. Thank you! |
Noting here that this feature (User-defined URIs to purge with post cache) would also solve the scenario described below: @bridgeport writes (in #553 (comment))...
@raamdev writes (in #553 (comment))...
|
+1 for this feature. I have a custom archive page with this https://wordpress.org/plugins/clean-my-archives/ and right now need to purge it manually after publishing a new post. I'll use the dynamic purge workaround you suggested, but think that a box for custom URIs in the Automatic Cache Clearing settings would make a lot of sense. Thanks! |
Next Actions
|
@kristineds While working on this issue, you can take note of the fact that ZenCache uses a lot of PHP Closures. You can learn more about Closures here: http://php.net/manual/en/functions.anonymous.php In the code above, |
Next Pro Release Changelog:
|
ZenCache v151114 has been released and includes changes from this GitHub Issue. See the v151114 announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#111). |
It would be nice if a site-owner could specify a custom list of URIs that should be purged when a post is published/modified.
This would be similar to the URI Exclusion feature, except these URIs would be cached normally and cleared the same way the Home Page and Posts Page caches can be cleared.
Such a feature would be useful in scenarios where the site has pages with custom archive views that need to be cleared when a post is published/modified.
The text was updated successfully, but these errors were encountered: