{"id":18662017,"date":"2025-09-30T10:25:35","date_gmt":"2025-09-30T10:25:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/automatic-cache-update-when-sorting-posts\/"},"modified":"2025-09-30T10:25:35","modified_gmt":"2025-09-30T10:25:35","slug":"automatic-cache-update-when-sorting-posts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/automatic-cache-update-when-sorting-posts\/","title":{"rendered":"Automatic cache update when sorting posts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m using the Post Types Order plugin to manually sort posts of a custom post type. However, after making changes to the sort order, I have to manually clear the cache of my website to ensure that the changes are visible on the frontend.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I was wondering if it&#8217;s possible to automatically update the cache when the sort order of posts is changed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve tried using the <code>cache_enabler_clear_complete_cache<\/code> hook, but I&#8217;m not sure if I&#8217;ve implemented it correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please help me find a solution to automatically update the cache when the sort order of posts is changed?<\/p>\n","protected":false},"template":"","class_list":["post-18662017","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18662017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18662017\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18662017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}