[wp-trac] [WordPress Trac] #13480: update_option + PHP5 Object references not storing correctly in cache

WordPress Trac wp-trac at lists.automattic.com
Sun May 23 11:17:42 UTC 2010


#13480: update_option + PHP5 Object references not storing correctly in cache
------------------------------+---------------------------------------------
 Reporter:  dd32              |        Owner:  ryan  
     Type:  defect (bug)      |       Status:  closed
 Priority:  normal            |    Milestone:  3.0   
Component:  Cache             |      Version:  3.0   
 Severity:  normal            |   Resolution:  fixed 
 Keywords:  needs-unit-tests  |  
------------------------------+---------------------------------------------

Comment(by dd32):

 > An excellent candidate for unit tests :-)

 Quite agree, I'll write some when i've got a free moment if someone else
 doesnt get to it first.

 To reproduce:
  * Create an object, store its value in an option, update a field in that
 object, update the option with it again.
  * All going well, the database should now contain the updated object.
  * Under PHP5 previously, This would not be the case, The database would
 only contain the FIRST version of the object
    * Will need to use a query or similar(disable cache temporarily?) to
 bypass cache and retrieve directly from the database.

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


More information about the wp-trac mailing list