[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
Mon Dec 13 10:41:33 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 scribu):

 Replying to [comment:17 garyc40]:
 > What I have in mind right now, is rewriting the cache API to provide a
 "wp_cache_delete_group()" which wipes out cached values of a whole group.
 Whenever something gets updated, we can just call wp_cache_delete_group(
 "terms" ); This would eliminate the need to attach $last_changed to the
 cache key.

 It turns out that the Memcache class, at least, does have a
 [http://www.php.net/manual/en/memcache.flush.php flush()] method and since
 each group is a an instance of that class, making a
 wp_cache_delete_group() function would be trivial.

 For reference:
 http://plugins.trac.wordpress.org/changeset/182802/memcached

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


More information about the wp-trac mailing list