Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16658 closed enhancement (maybelater)

Reverse expiry check for wp_cache functions

Reported by: akshay_raje Owned by:
Priority: normal Milestone:
Component: Cache Version:
Severity: normal Keywords: reporter-feedback close
Cc:

Description

The basic idea is that expiry details are not stored within the cache at all. Expiry is rather a part of the 'get' call. The idea is that cached data is stored with a timestamp instead of expiry. In short, the get function (wp_cache_get) will validate is the cache has expired or not using the timestamp set by the add / set function.

This will give access (if needed) to expired cache too.

Change History (3)

  • Keywords reporter-feedback added; 2nd-opinion removed

What is the problem you are trying to solve?

You have proposed a solution to something not a problem which makes it really hard to triage this ticket.

We need to know what the problem is so that we can ensure we implement the best solution - or point you at how to implement the solution you require in a plugin.

  • Keywords close added
  • Resolution set to maybelater
  • Status changed from new to closed

comment:3   dd322 years ago

  • Milestone Awaiting Review deleted

Just like to mention, that the hardest part of ever implementing this, would be getting all the drop in cache's to support it.. it usually takes 2-3 versions before it's widely supported IMO.

Note: See TracTickets for help on using tickets.