[wp-trac] [WordPress Trac] #62476: Need the ability to clear WP_Query cache partially and ability to set expiry for queries.

WordPress Trac noreply at wordpress.org
Thu Nov 21 04:49:15 UTC 2024


#62476: Need the ability to clear WP_Query cache partially and ability to set
expiry for queries.
-------------------------+------------------------------------------
 Reporter:  thekt12      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  performance, sustainability
-------------------------+------------------------------------------
Changes (by mukesh27):

 * keywords:   => needs-patch
 * component:  Database => Query
 * milestone:  Awaiting Review => Future Release


Comment:

 Here’s a polished version of your statement:

 This ticket was discussed during the Performance bug scrub.

 Caching the `WP_Query` is a critical change and needs to be approached
 with careful consideration.

 Additional thoughts from @joemcgill: Implementing this change via an
 action is a viable approach, but it's also worth considering the ability
 to selectively purge specific queries from the cache or modify the expiry
 time.

 This is something we can address in a `Future Release`.

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


More information about the wp-trac mailing list