New issue
Advanced search Search tips

Issue 866419 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 812168



Sign in to add a comment

Add option to clear a subset of the code cache

Project Member Reported by mythria@chromium.org, Jul 23

Issue description

Current API only allows to clear the entire code cache. Extend it to support clearing the code cache for a specific URL or with a specific date range.
 
Blocking: 812168
Cc: kinuko@chromium.org morlovich@chromium.org
Status: Started (was: Assigned)
I am sorry it took a while to get back to this. For http caches we support clearing of the caches within a date range (the last accessed date) and for a subset of chosen URLs. Date range is easy to check for code caches as well. For the URL, since we use two keys we need to derive the URL. Currently the generated key is 
_key+resource_url+"  \n"+origin. I plan to extract the resource_url and then check if it matches the URLs that needs to be cleared. Since the separator (" \n") cannot be in a valid URL it would be safe to do this. This also means that I clear the entries from all origins corresponding to the URL. 

kinuko@, morlovich@ does this sound reasonable? 

Sign in to add a comment