[wp-trac] [WordPress Trac] #55847: Cache does not use expire

WordPress Trac noreply at wordpress.org
Thu May 26 13:43:40 UTC 2022

#55847: Cache does not use expire
 Reporter:  malthert      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
 By default class-wp-object-cache.php does not use the expire in "function

 If the request is long (e.g. cron) and the expiration is short (e.g. 30
 seconds), this means that expired cache data is used.

 WP needs to keep track of expiration times in internal cache too (can be
 done by storing the time() + $expire time. If time() > that value, the
 element is expired.

Ticket URL: <https://core.trac.wordpress.org/ticket/55847>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list