File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
docs/content/doc/advanced Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -650,9 +650,9 @@ ITEM_TTL = 16h
650
650
[cache.last_commit]
651
651
; if the cache enabled
652
652
ENABLED = true
653
- ; Time to keep items in cache if not used, default is 16 hours.
653
+ ; Time to keep items in cache if not used, default is 8760 hours.
654
654
; Setting it to 0 disables caching
655
- ITEM_TTL = 16h
655
+ ITEM_TTL = 8760h
656
656
; Only enable the cache when repository's commits count great than
657
657
COMMITS_COUNT = 1000
658
658
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ relation to port exhaustion.
394
394
## Cache - LastCommitCache settings (` cache.last_commit ` )
395
395
396
396
- ` ENABLED ` : ** true** : Enable the cache.
397
- - ` ITEM_TTL ` : ** 16h ** : Time to keep items in cache if not used, Setting it to 0 disables caching.
397
+ - ` ITEM_TTL ` : ** 8760h ** : Time to keep items in cache if not used, Setting it to 0 disables caching.
398
398
- ` COMMITS_COUNT ` : ** 1000** : Only enable the cache when repository's commits count great than.
399
399
400
400
## Session (` session ` )
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ menu:
159
159
## Cache - LastCommitCache settings (` cache.last_commit ` )
160
160
161
161
- ` ENABLED ` : ** true** : 是否启用。
162
- - ` ITEM_TTL ` : ** 86400h ** : 缓存项目失效时间,设置为 0 则禁用缓存。
162
+ - ` ITEM_TTL ` : ** 8760h ** : 缓存项目失效时间,设置为 0 则禁用缓存。
163
163
- ` COMMITS_COUNT ` : ** 1000** : 仅当仓库的提交数大于时才启用缓存。
164
164
165
165
## Session (` session ` )
Original file line number Diff line number Diff line change 43
43
CommitsCount int64
44
44
}{
45
45
Enabled : true ,
46
- TTL : 16 * time .Hour ,
46
+ TTL : 8760 * time .Hour ,
47
47
CommitsCount : 1000 ,
48
48
},
49
49
}
You can’t perform that action at this time.
0 commit comments