Open BrookeDot opened 1 year ago
The cache key for guest authors is an md5 hash generated with get_cache_key https://github.com/Automattic/Co-Authors-Plus/blob/f332122a5b56b461ad90969e2a14600e649a2e9a/php/class-coauthors-guest-authors.php#L1124-L1145
get_cache_key
This cache key is passed to delete_guest_author_cache.
delete_guest_author_cache
Right now one way to delete author cache is with WP Shell and wp_cache_delete ie:
WP Shell
wp_cache_delete
wp_cache_delete( md5( 'guest-author-user_nicename-cap-USER-NICENAME' ), 'coauthors-plus-guest-authors' );
It would be great if delete_guest_author_cache() could be accessible via a WP-CLI subcommand.
delete_guest_author_cache()
The cache key for guest authors is an md5 hash generated with
get_cache_key
https://github.com/Automattic/Co-Authors-Plus/blob/f332122a5b56b461ad90969e2a14600e649a2e9a/php/class-coauthors-guest-authors.php#L1124-L1145This cache key is passed to
delete_guest_author_cache
.Right now one way to delete author cache is with
WP Shell
andwp_cache_delete
ie:It would be great if
delete_guest_author_cache()
could be accessible via a WP-CLI subcommand.