cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Data cache not regenerating after deleting a post / page #305

Closed cabrerahector closed 2 years ago

cabrerahector commented 2 years ago

Describe the bug

When Data Caching is enabled, deleting / trashing a post or page doesn't remove said item from the popular posts list.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Settings > WordPress Popular Posts > Tools, enable the Data Cache feature.
  2. Remove or trash one of the posts.
  3. See how WPP is still listing the deleted post.

Expected behavior

On post / page deletion WPP should purge its data cache to prevent this issue from happening.

Environment: