Bulk editing media bypasses object cache
-
Hi Jeffrey, I’ve been unable to find your contact information on your website or your WP profile.
We’ve been using your plugin but noticed it bypasses the object cache when bulk updating media items. This causes old category information to be shown in the rest-api, WP admin etc after bulk editing, until the necessary cache keys expire.
This can be confirmed by flushing the cache, which updates the term relationships across the site. But that’s a bad workaround:
I’ve created a patch that clears out the necessary caches then calls the bulk editing handler so that when the media categories are requested again their shown correctly.
Ideally you’d use the builtin WP functions to set the term relationships so that the object cache is not bypassed in the first place.
You can find the fix linked as a GitHub gist: https://gist.github.com/svandragt/140016379007c66f64328cce13354492
Hopefully you’re able to update the plugin as well.
The topic ‘Bulk editing media bypasses object cache’ is closed to new replies.