Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
900 stars 368 forks source link

Cache for job listings not cleared when doing bulk actions #2697

Closed yscik closed 8 months ago

yscik commented 8 months ago

Describe the bug

When running bulk actions in the job listings admin that update meta (mark as filled/not filled), the job listing cache is not cleared. Code

WP_Job_Manager_Cache_Helper should add a hook to relevant post meta updates similar to the other hooks here: https://github.com/Automattic/WP-Job-Manager/blob/2be6144c8014f988873f9bdea43a3569a7048f9e/includes/class-wp-job-manager-cache-helper.php#L24

To Reproduce

Steps to reproduce the behavior: