nginx-helper icon indicating copy to clipboard operation
nginx-helper copied to clipboard

New filter for $feed

Open mattf10 opened this issue 3 years ago • 3 comments

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

mattf10 avatar Aug 11 '22 09:08 mattf10

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

gagan0123 avatar Feb 01 '23 19:02 gagan0123

QA Details

  • QA Branch:

    • Develop
  • List of tasks needs to be reviewed/tested:

    • Purge Feeds setting (Newly added). 217455879-d934ef0e-9d54-49fa-916f-14c5f606df03
    • Ability to uncheck/check the options in settings panel.
    • A general test, wether all the options are working after being checked.

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

Pathan-Amaankhan avatar Apr 09 '24 06:04 Pathan-Amaankhan

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

pavanpatil1 avatar Apr 09 '24 07:04 pavanpatil1