[wp-trac] [WordPress Trac] #29894: get_terms() isn't caching - duplicate queries generated

WordPress Trac noreply at wordpress.org
Wed Oct 8 18:17:54 UTC 2014


#29894: get_terms() isn't caching - duplicate queries generated
-------------------------------+------------------------------
 Reporter:  webgeekconsulting  |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.0
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:  performance
-------------------------------+------------------------------

Comment (by webgeekconsulting):

 I've attached a patched version of wp-includes/taxonomy.php. Attempting to
 hash the functions arguments can be unreliable (passing 0/1 instead of
 true/false and vice verse). So, instead of serializing and hashing the
 arguments, we can instead use a hash of the actual SQL statement.

 Patch tested and verified working in 4.0.

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


More information about the wp-trac mailing list