Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge cache request #9

Open
riteshgurung opened this issue Apr 17, 2019 · 2 comments
Open

Purge cache request #9

riteshgurung opened this issue Apr 17, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@riteshgurung
Copy link

Feature request to purge cache based on

  • cache id
  • wild card cache id [APC:hotels/*]
@ajaysinghj8 ajaysinghj8 reopened this Apr 17, 2019
@riteshgurung riteshgurung added the enhancement New feature or request label Apr 18, 2019
@ajaysinghj8
Copy link
Owner

ajaysinghj8 commented Apr 30, 2019

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.

@riteshgurung
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants