[wp-trac] [WordPress Trac] #30430: WP_Object_Cache does not properly cache objects nested in arrays

WordPress Trac noreply at wordpress.org
Fri Mar 6 10:54:37 UTC 2015


#30430: WP_Object_Cache does not properly cache objects nested in arrays
-------------------------------------------------+-------------------------
 Reporter:  jamesgol                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Cache API                            |  Review
 Severity:  normal                               |     Version:  2.0
 Keywords:  reporter-feedback has-patch needs-   |  Resolution:
  testing needs-unit-tests                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by jipmoors):

 Replying to [comment:8 jamesgol]:
 > @jipmoors the reason that duplicate functionality was in there is
 because it is more efficient to do it that way.

 Could you explain how that would be more efficient? The opcode of the
 function would be reduced by removing the duplicate functionality.

 The suggested benefit would be neglegable and the readability is greatly
 improved by not repeating the code, in my opinion.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30430#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list