Open mattf10 opened 2 years ago
I think adding a setting would make it much easier to check and uncheck feeds URL purge for everyone.
QA Branch:
List of tasks needs to be reviewed/tested:
Plugin's settings panel path: wp-admin > Settings > Nginx Helper
.
PR Link: https://github.com/rtCamp/nginx-helper/pull/294/
Hi @Pathan-Amaankhan, Verified the setting option, and it appears to be working fine. Able to check/uncheck the other options properly and enable disable the purging.
This is a feature request. Currently, the 'feed' urls are called every time a post is purged. In my case, this is not required but there is no way to override the 'feed' parameter, which defaults to true.
So please add a filter in the method 'purge_url' that allows users to override the value of feed, something like:
$feed = apply_filters( 'rt_nginx_helper_purge_feed', $feed );
Thanks