[Cronet] Create a version file for disk cache |
||
Issue descriptionCurrently we put local_prefs.json (for HttpServerProperties) in the same directory where disk cache is. This can be problematic because simple cache backend will update the index file whenever the directory ctime changes. Since we persist HttpServerProperties to local_prefs.json every 1 min, this is costly. Suggested approach is to put disk cache in a sub directory, and local_prefs.json in another. We also add a version file and blow out cache if the version doesn't match.
,
Apr 5 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/0205413389339f92868e2c62ef0f56f2793bbff0 commit 0205413389339f92868e2c62ef0f56f2793bbff0 Author: xunjieli <xunjieli@chromium.org> Date: Tue Apr 05 19:42:56 2016 [Cronet] Purge storage directory if version does not match This CL adds a version check to make sure storage directory layout is up-to-date. This CL moves disk cache to its sub directory, and local_pref.json to a different sub directory. BUG= 598834 Review URL: https://codereview.chromium.org/1839283002 Cr-Commit-Position: refs/heads/master@{#385260} [modify] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/android/BUILD.gn [modify] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/android/cronet_url_request_context_adapter.cc [add] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/android/test/javatests/src/org/chromium/net/DiskStorageTest.java [modify] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/android/test/javatests/src/org/chromium/net/QuicTest.java [modify] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/android/test/javatests/src/org/chromium/net/SdchTest.java [modify] https://crrev.com/0205413389339f92868e2c62ef0f56f2793bbff0/components/cronet/url_request_context_config.cc
,
Apr 5 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by xunji...@chromium.org
, Mar 30 2016