Security Plugin(s) renders wp-rocket useless #5887
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
community
Issues created by someone outside of our team
effort: [S]
1-2 days of estimated development time
module: cache
priority: medium
Issues which are important, but no one will go out of business.
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Not sure how many Security Plugins use that "feature" this way, but it would be very easy to avoid this pitfall and lessen support requests (like we had one):
WP Cerber has a feature called "Stop exposing user details" (
nouserpages_bylogin
in code). The way they implemented it renders WP Rocket useless.The feature sets - via
add_filter('author_link'…)
- all author pages queried viaget_author_posts_url()
to the SITE-URL.WP-Rocket uses
get_author_posts_url()
to delete the author page of the post from the cache inrocket_clean_post()
.However, due to the WP Cerber feature this adds the SITE-URL to the
$purge_urls
array.Means that every time a post is changed (product, order,...), the entire site cache is deleted.
A simple check (something like
get_author_posts_url() != SITE-URL
) or alike would avoid this drama.Regards,
Thomas
The text was updated successfully, but these errors were encountered: