BoldGrid / w3-total-cache

GNU General Public License v2.0
153 stars 86 forks source link

Add hooks for rules customization #970

Closed anatolinicolae closed 1 month ago

anatolinicolae commented 1 month ago

In some cases there's need for more surgical customizations of the rules in an .htaccess file. Often it's also best not to repeat ourselves, adding the same rules over and over instead of relying on centralized solutions (reference).

This PR adds more hooks for third-party plugins to hook into, and manipulate Apache rules as needed.

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 0.91%. Comparing base (5f60e03) to head (05f497d).

Files with missing lines Patch % Lines
BrowserCache_Environment.php 0.00% 40 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #970 +/- ## =========================================== - Coverage 0.91% 0.91% -0.01% Complexity 19453 19453 =========================================== Files 674 674 Lines 97946 97950 +4 =========================================== Hits 893 893 - Misses 97053 97057 +4 ``` | [Flag](https://app.codecov.io/gh/BoldGrid/w3-total-cache/pull/970/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/BoldGrid/w3-total-cache/pull/970/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BoldGrid#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

cssjoe commented 1 month ago

@anatolinicolae I created https://github.com/BoldGrid/w3-total-cache/pull/980 to replace this suggested pull request, which implements more filters and corrects some coding standards violations.