Refactor code base to (mostly) follow WordPress coding standards. Soft tabs with the tab length 4 are used for indentation (instead of hard tabs). Associative arrays have each item on a new line. Arrays are declared with long syntax and have trailing commas. When using multiline PHP snippets within HTML block the PHP open and close tags are now on a line by themselves. Spaces, lots of spaces. Update error messages to increase usefulness. Add @change to code documentation to avoid reformatting for clean future diffs.
Update settings. Improve the settings page style. Change the Cache Behavior options order to group all options that clear the complete cache. Change the Cache Inclusions from "GET attributes" to "URL query parameters" to improve understanding of functionality. Remove HTML from translatable strings like in PR #31. Use esc_html__() and esc_html_e() instead of __() and _e() for translatable strings to ensure safe HTML output.
Remove path cache bypass check from advanced-cache.php because the path will never be cached if excluded so checking twice is not required. Update the _bypass_cache() method:
When a cached page does not exist, allow cookie values to be checked when user is logged out.
Remove get_option( 'permalink_structure' ) when checking URL query parameters because it is unnecessary logic. In order to cache pages properly the Cache Enabler plugin requires a custom permalink structure enabled. All exclusions are not prevented from being checked if the permalink structure is set to plain (NULL). The same should be applied to inclusions.
When a cached page does not exist check the URL query parameters regex added in PR #40 instead of only checking for utm_source, utm_medium, and utm_campaign. This may have caused issue #79. Add fbclid as default URL query parameter to not bypass the cache as requested and discussed in PR #80.
Update outbound links to KeyCDN and Optimus to avoid unnecessary 301 redirects. Update outbound link to WordPress because the page was moved. Correct brand name style (WordPress, WooCommerce, and WP-CLI).
Refactor code base to (mostly) follow WordPress coding standards. Soft tabs with the tab length 4 are used for indentation (instead of hard tabs). Associative arrays have each item on a new line. Arrays are declared with long syntax and have trailing commas. When using multiline PHP snippets within HTML block the PHP open and close tags are now on a line by themselves. Spaces, lots of spaces. Update error messages to increase usefulness. Add
@change
to code documentation to avoid reformatting for clean future diffs.Update settings. Improve the settings page style. Change the Cache Behavior options order to group all options that clear the complete cache. Change the Cache Inclusions from "GET attributes" to "URL query parameters" to improve understanding of functionality. Remove HTML from translatable strings like in PR #31. Use
esc_html__()
andesc_html_e()
instead of__()
and_e()
for translatable strings to ensure safe HTML output.Remove path cache bypass check from
advanced-cache.php
because the path will never be cached if excluded so checking twice is not required. Update the_bypass_cache()
method:When a cached page does not exist, allow cookie values to be checked when user is logged out.
Remove
get_option( 'permalink_structure' )
when checking URL query parameters because it is unnecessary logic. In order to cache pages properly the Cache Enabler plugin requires a custom permalink structure enabled. All exclusions are not prevented from being checked if the permalink structure is set to plain (NULL). The same should be applied to inclusions.When a cached page does not exist check the URL query parameters regex added in PR #40 instead of only checking for
utm_source
,utm_medium
, andutm_campaign
. This may have caused issue #79. Addfbclid
as default URL query parameter to not bypass the cache as requested and discussed in PR #80.Update outbound links to KeyCDN and Optimus to avoid unnecessary 301 redirects. Update outbound link to WordPress because the page was moved. Correct brand name style (WordPress, WooCommerce, and WP-CLI).
Implements: #80