osham
osham copied to clipboard
Purge cache request
Feature request to purge cache based on
- cache id
- wild card cache id [APC:hotels/*]
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.
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.