[wp-trac] [WordPress Trac] #35075: Comment cache ignores custom query vars
WordPress Trac
noreply at wordpress.org
Tue Dec 15 15:16:23 UTC 2015
#35075: Comment cache ignores custom query vars
-----------------------------+--------------------------
Reporter: jason_the_adams | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Comments | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: performance
-----------------------------+--------------------------
Comment (by jason_the_adams):
So since there was no reason given for limiting the cache hash to only the
defaults, what about just using the entire query_var array?
{{{#!php
$key = md5( serialize( $this->query_vars ) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35075#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list