[4.4] Fix System - Page Cache plugin ignore Exclude URLs parameter #42871
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #42477.
Summary of Changes
There is a bug in System - Page Cache plugin causes Exclude URLs never works as explained in original issue. This PR just fixes that issue. Plus I change the code for checking URLs exclusion to use the same code like in Joomla 3 because:
Testing Instructions
Actual result BEFORE applying this Pull Request
The page is always being cached. To see that, you can access to that menu item for the first page. Then try to edit code in the file components/com_content/tmpl/article/default.php , add some random string to it. Then access to the menu item again, you do not see any change (because the system uses a cached version of the page)
Expected result AFTER applying this Pull Request
The page is not being cached as expected. To see that, you can access to that menu item for the first page. Then try to edit code in the file components/com_content/tmpl/article/default.php , add some random string to it. Then access to the menu item again, you will see the change you applied.
Link to documentations
Please select: