We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbd1e5 commit 71e28e1Copy full SHA for 71e28e1
packages/app-lib/src/state/cache.rs
@@ -80,11 +80,12 @@ impl CacheValueType {
80
}
81
82
83
+ /// Returns the expiry time for entries of this type of cache item, in seconds.
84
pub fn expiry(&self) -> i64 {
85
match self {
- CacheValueType::File => 60 * 60 * 24 * 30, // 30 days
86
- CacheValueType::FileHash => 60 * 60 * 24 * 30, // 30 days
87
- _ => 60 * 60 * 30, // 30 minutes
+ CacheValueType::File => 30 * 24 * 60 * 60, // 30 days
+ CacheValueType::FileHash => 30 * 24 * 60 * 60, // 30 days
88
+ _ => 30 * 60, // 30 minutes
89
90
91
0 commit comments