[wp-trac] [WordPress Trac] #14485: Taxonomy hierarchy cache isn't properly refreshed

WordPress Trac noreply at wordpress.org
Thu Jan 23 10:27:12 UTC 2014


#14485: Taxonomy hierarchy cache isn't properly refreshed
-------------------------------------------------+-------------------------
 Reporter:  thealien                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  high                                 |   Milestone:  Future
Component:  Cache                                |  Release
 Severity:  normal                               |     Version:  3.0
 Keywords:  needs-testing needs-unit-tests       |  Resolution:
  needs-patch needs-refresh                      |
-------------------------------------------------+-------------------------
Changes (by mainpart):

 * cc: mainpart@… (added)
 * keywords:  needs-testing needs-unit-tests needs-patch => needs-testing
     needs-unit-tests needs-patch needs-refresh


Comment:

 it is still buggy even in 3.7. today i've got out of sync
 category_hierarchy option - some categories were missing from wp_option
 'category_children' entry
 Current code:
 {{{#!php
         $children = get_option("{$taxonomy}_children");
         if ( is_array($children) ) return $children;
 }}}
 will not refresh hierarchy if it not empty. even with last patch.
 i suggest to switch to some caching solution implemented in wp core or get
 rid off this strange piece of code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14485#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list