rtCamp / nginx-helper

Nginx Helper for WordPress caching, permalinks & efficient file handling in multisite
https://wordpress.org/plugins/nginx-helper/
229 stars 121 forks source link

New filter for $feed #281

Open mattf10 opened 2 years ago

mattf10 commented 2 years ago

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

gagan0123 commented 1 year ago

I think adding a setting would make it much easier to check and uncheck feeds URL purge for everyone.

Pathan-Amaankhan commented 5 months ago

QA Details


Plugin's settings panel path: wp-admin > Settings > Nginx Helper. PR Link: https://github.com/rtCamp/nginx-helper/pull/294/

pavanpatil1 commented 5 months ago

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.

image