[wp-trac] [WordPress Trac] #14485: Didn't show up children category when created parent and children categories at the same time.

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 12 06:59:07 UTC 2010


#14485: Didn't show up children category when created parent and children
categories at the same time.
--------------------------+-------------------------------------------------
 Reporter:  thealien      |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  high          |   Milestone:  3.1                    
Component:  Cache         |     Version:  3.0                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by garyc40):

 So, once I corrected line 10 in your test case, things worked out fine
 with my original documented patch.

 But I want to take things one step further. So there's another patch
 attached (rev 4), in which I eliminated the need for a "last_changed" key.

 I just simply store all the generated cache keys into
 "get_terms:cache_keys". Then whenever term structures are modified, all of
 the generated get_terms cache values are invalidated properly.

 Is there any potential problem with that approach? If there is, the
 original documented patch works fine anyways.

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


More information about the wp-trac mailing list