Clean comment cache after direct SQL queries
david-binda opened this issue · comments
Since WordPress 4.6, the comment
cache group is persistent, thus after any INSERT
, UPDATE
, or DELETE
direct SQL query touching the comments table, the clean_comment_cache
function should be called.
Looks like it's not the case in Liveblog's WP CLI commands: https://github.com/Automattic/liveblog/blob/master/classes/class-wpcom-liveblog-wp-cli.php#L160
The updated version of liveblog uses posts instead of comments: https://github.com/paulschreiber/liveblog
which avoids this problem