[wp-trac] [WordPress Trac] #23948: Random for WP_Query

WordPress Trac noreply at wordpress.org
Fri Apr 5 13:12:30 UTC 2013


#23948: Random for WP_Query
-------------------------------+------------------------------
 Reporter:  Looimaster         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  3.5.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by kovshenin):

 Replying to [comment:2 johnbillion]:
 > My only guess to the cause of this is that MYSQL is caching the results
 in the query cache even though the query contains `RAND()`. I've never
 heard of this happening though.

 That'd be strange indeed. Keywords such as NOW(), CURRENT_TIMESTAMP() and
 RAND() are all by-pass query cache. If I had to guess, I'd say that maybe
 the 2/10 servers have page cache enabled, or perhaps the results of
 `WP_Query` are being stored into persistent object cache. In any case,
 need more details.

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


More information about the wp-trac mailing list