rtCamp / nginx-helper

Nginx Helper for WordPress caching, permalinks & efficient file handling in multisite

Home Page:https://wordpress.org/plugins/nginx-helper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New filter for $feed

mattf10 opened this issue · 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

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

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: #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.

image