osham icon indicating copy to clipboard operation
osham copied to clipboard

Purge cache request

Open riteshgurung opened this issue 5 years ago • 2 comments

Feature request to purge cache based on

  • cache id
  • wild card cache id [APC:hotels/*]

riteshgurung avatar Apr 17 '19 05:04 riteshgurung

Key Generation should be changed:

Current Implementation

-> ACP:<NAMESPACE>:<sha256 HEX of (PATH + (? - HEADERS joined with | ) + (? queryString) >

Should be

-> ACP:<NAMESPACE>:(HEX of PATH): (HEX  of (? - HEADERS joined with | ) + (? queryString)) 

Benefits-

All cache keys version of a URL can be purged based on pattern match, regardless of query-string or headers. @riteshgurung Please suggest.

ajaysinghj8 avatar Apr 30 '19 06:04 ajaysinghj8

In order to understand the context better. I can choose to purge a specific key /articles/asia/india/elections-2019.html

or I can choose to purge a pattern based key /articles/asia/india this implies to purge all articles related to india.

riteshgurung avatar Apr 30 '19 11:04 riteshgurung