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

WordPress Trac noreply at wordpress.org
Fri May 27 10:03:54 UTC 2022


#55847: Cache does not use expire
--------------------------+------------------------------
 Reporter:  malthert      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cache API     |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by malthert):

 * severity:  normal => major


Comment:

 This would also require that any external object cache also return their
 key expirations, as otherwise it would mean that any objects received from
 an external/permanent object cache are treated as permanent, even though
 they are not.

 The question is basically:
 - cache objects don't expire for the current runtime once they're get/set
 -> current behavior. this causes issues in long running tasks, e.g. cron
 OR
 - cache objects expire even in the current runtime. This means even
 external object caches need to get the expiration time, if we store it in
 internal cache

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


More information about the wp-trac mailing list