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

WordPress Trac noreply at wordpress.org
Thu Aug 1 03:29:18 UTC 2013


#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                                    |
-------------------------------------------------+-------------------------
Changes (by lgedeon):

 * cc: luke.gedeon@… (added)


Comment:

 Just a thought. I can dig into it further if you guys like the idea.
 Inside wp_insert_term, could we register a hook against shutdown that will
 refresh the {$taxonomy}_children option there? Subsequent calls to
 wp_insert_term could check if the hook is set and not re-add.

 This way the cache only gets reset once without the complex keys.

 To be honest, I have not dug deep enough into the other cases to know if
 it would fix all of them, but I know of a few cases it would solve.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/14485#comment:70>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list