Reordering fails when used with object-cache.php ( redis, in this case)
-
We have been using RCPO successfully for a while now, in combination with the paid version real-category-manager.
For performance reasons, we wanted to use an object cache ( in this case we use a redis server and Till Krüss’ well-known redis plugin (https://de.www.ads-software.com/plugins/redis-cache/) The plugin implements the object-cache.php dropin which is then used by wordpress automatically.
However, as soon as we enable the object cache, the reordering does not work any more. Means: I can still reorder the posts in the backend, but the new order does not show in the frontend.
The previous post here, https://www.ads-software.com/support/topic/how-to-purge-litespeed-cache-automatically-after-reording-posts/ , reported similar problems.
By comparing the database and the redis cache content the reason becomes obvious: when reordering in the GUI, RCPO updates the wp_posts table ( field menu_order is changed ), but the cached version remains unchanged.
I am not sure whether this is a problem of RCPO or of the caching plugin. My assumption was that wordpress core and cache plugins would ensure that changes of wp_posts are propagated to the cache. Is this not true? Is it necessary to implement for a plugin to implement filter hooks that are called for cache purges after changing posts? If so, it would be wise to purge only the entries of the changed posts, not the whole cache …
Regards, Ulrich
( Also reported at https://www.ads-software.com/support/topic/propagating-changes-of-wp_post-fields-to-cache-who-is-responsible/ – not specific to RCPO but with a broader scope )
- The topic ‘Reordering fails when used with object-cache.php ( redis, in this case)’ is closed to new replies.