[wp-trac] Re: [WordPress Trac] #3726: wp_list_categories() goes berzerk on default install with object cache enabled

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 31 05:51:40 GMT 2007


#3726: wp_list_categories() goes berzerk on default install with object cache
enabled
-----------------------------+----------------------------------------------
 Reporter:  markjaquith      |        Owner:  anonymous
     Type:  defect           |       Status:  new      
 Priority:  highest omg bbq  |    Milestone:  2.1.1    
Component:  Template         |      Version:  2.1      
 Severity:  major            |   Resolution:           
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by markjaquith):

 I did a svn switch to /branches/2.1/ before reporting.

 In order for the cache to be enabled, your wp-contents directory needs to
 be writable (it should create a /cache/ directory).

 In any case, I discovered the issue.  {{{get_category()}}} tries to store
 an array of object references into the cache.  The cache doesn't like
 this, and stores a blank string instead.  So you get a blank string on the
 way out.

 Looking around the web, it seems like good old serialize/unserialize is
 the sure way to make sure you don't have any references.  Patch adds that
 to the appropriate cache functions.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3726#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list