-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Separate cache hash length and folder depth #212
Separate cache hash length and folder depth #212
Conversation
Codecov Report
@@ Coverage Diff @@
## master #212 +/- ##
======================================
+ Coverage 86% 89% +2%
======================================
Files 68 65 -3
Lines 1791 1653 -138
Branches 262 232 -30
======================================
- Hits 1556 1482 -74
+ Misses 167 112 -55
+ Partials 68 59 -9
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
I've excluded the LRU cache from code coverage for now: I'm not sure why the coverage decreased, but it's completely missing dedicated tests to begin with. |
@ronaldbarendse Don't worry about the coverage and don't hide it. It's flaky as hell. I had a change recently observed when converting to png's to LFS pointers |
Because I think adding a setting just for backwards compatibility isn't the best way forward, I thought about creating a sub-class called |
I think closing this PR and opening another was a bit premature. Best leaving those kinds of decisions to the library owners. |
Fair enough, although I was pretty sure the other PR that doesn't require additional settings would be preferred 😇 |
Prerequisites
Description
As discussed in #210, this separates the cache hash length and (
PhysicalFileSystemCache
specific) cache folder depth. It also generates shorter cache file names by default by not repeating the characters that are already used in the nested folders.