Update cache clearing behavior for comment actions. Allow site cache clearing setting to clear the site cache if a comment (e.g. default comments or product reviews) is posted, updated, spammed, or trashed instead of only when a new comment is posted. This fixes the issue of where if a new comment was posted but had to be approved first it would only clear the page cache and not the site cache if the setting was enabled. There is no way to know if the comment is new after the status transitions, which is why this new behavior was chosen to be introduced instead of only updating Cache_Enabler::on_transition_comment_status() as that could occur on old comments. This builds upon the improved behavior brought in PR #169.
Update cache clearing behavior for comment actions. Allow site cache clearing setting to clear the site cache if a comment (e.g. default comments or product reviews) is posted, updated, spammed, or trashed instead of only when a new comment is posted. This fixes the issue of where if a new comment was posted but had to be approved first it would only clear the page cache and not the site cache if the setting was enabled. There is no way to know if the comment is new after the status transitions, which is why this new behavior was chosen to be introduced instead of only updating
Cache_Enabler::on_transition_comment_status()
as that could occur on old comments. This builds upon the improved behavior brought in PR #169.