reproducible
reproducible copied to clipboard
inconsistent cache size reporting and management
I keep seeing inconsistencies in Cache behaviour, typically needing to invoke both clearCache()
and cc(Inf)
in order to fully remove all cache entries and files:
> reproducible::CacheStorageDir()
[1] "cache/cacheOutputs"
> showCache()
x not specified; using cache
Cache size:
Total (including Rasters): 13.7 Gb
Selected objects (not including Rasters): 13.7 Gb
cacheId tagKey tagValue
<char> <char> <char>
1: 002ae52d97e0f11e ignitionFit ignitionFit
2: 002ae52d97e0f11e escapeFit escapeFit
3: 002ae52d97e0f11e spreadFit spreadFit
4: 002ae52d97e0f11e module fireSense_IgnitionFit
5: 002ae52d97e0f11e eventType run
---
11737: ff14b5133aea47d2 preDigest maxBInFactorial:8b8cc8379dd472d7
11738: ff14b5133aea47d2 preDigest standAgesForFitting:b6f88bdf62f0bc5e
11739: ff14b5133aea47d2 preDigest approach:955d7106b15759fa
11740: ff14b5133aea47d2 preDigest .FUN:de585ea2e59b8190
11741: ff14b5133aea47d2 preDigest .cacheExtra:1e357b37e8c2235e
createdDate
<char>
1: 2024-04-11 20:53:11.232948
2: 2024-04-11 20:53:11.232948
3: 2024-04-11 20:53:11.232948
4: 2024-04-11 20:53:11.232948
5: 2024-04-11 20:53:11.232948
---
11737: 2024-04-11 16:37:47.192433
11738: 2024-04-11 16:37:47.192433
11739: 2024-04-11 16:37:47.192433
11740: 2024-04-11 16:37:47.192433
11741: 2024-04-11 16:37:47.192433
> clearCache()
x not specified; using cache
Your current cache size is 152.4 Gb.
Are you sure you would like to delete it all? Y or N
y
> showCache()
x not specified; using cache
Cache size:
Total (including Rasters): 13.7 Gb
Selected objects (not including Rasters): 13.7 Gb
cacheId tagKey tagValue
<char> <char> <char>
1: 002ae52d97e0f11e ignitionFit ignitionFit
2: 002ae52d97e0f11e escapeFit escapeFit
3: 002ae52d97e0f11e spreadFit spreadFit
4: 002ae52d97e0f11e module fireSense_IgnitionFit
5: 002ae52d97e0f11e eventType run
---
11737: ff14b5133aea47d2 preDigest maxBInFactorial:8b8cc8379dd472d7
11738: ff14b5133aea47d2 preDigest standAgesForFitting:b6f88bdf62f0bc5e
11739: ff14b5133aea47d2 preDigest approach:955d7106b15759fa
11740: ff14b5133aea47d2 preDigest .FUN:de585ea2e59b8190
11741: ff14b5133aea47d2 preDigest .cacheExtra:1e357b37e8c2235e
createdDate
<char>
1: 2024-04-11 20:53:11.232948
2: 2024-04-11 20:53:11.232948
3: 2024-04-11 20:53:11.232948
4: 2024-04-11 20:53:11.232948
5: 2024-04-11 20:53:11.232948
---
11737: 2024-04-11 16:37:47.192433
11738: 2024-04-11 16:37:47.192433
11739: 2024-04-11 16:37:47.192433
11740: 2024-04-11 16:37:47.192433
11741: 2024-04-11 16:37:47.192433
> cc(Inf)
x not specified; using cache
Cache size:
Total (including Rasters): 13.7 Gb
Selected objects (not including Rasters): 13.7 Gb
Your size of your selected objects is 13.7 Gb.
Are you sure you would like to delete it all? Y or N
y
> showCache()
x not specified; using cache
Cache size:
Total (including Rasters): 0 bytes
Selected objects (not including Rasters): 0 bytes
Empty data.table (0 rows and 4 cols): cacheId,tagKey,tagValue,createdDate