Skip to content

Commit bff2bb1

Browse files
authored
Remove GC left-voer setting "probability" (#8359)
1 parent 45686d7 commit bff2bb1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎docs/en/core-libraries/caching.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ following:
7575
'long' => [
7676
'className' => 'Cake\Cache\Engine\FileEngine',
7777
'duration' => '+1 week',
78-
'probability' => 100,
7978
'path' => CACHE . 'long' . DS,
8079
],
8180
]
@@ -109,7 +108,6 @@ Cache::setConfig('short', [
109108
Cache::setConfig('long', [
110109
'className' => 'Cake\Cache\Engine\FileEngine',
111110
'duration' => '+1 week',
112-
'probability' => 100,
113111
'path' => CACHE . 'long' . DS,
114112
]);
115113

@@ -151,8 +149,6 @@ Each engine accepts the following options:
151149
config. Useful when you need to delete a subset of data from a cache.
152150
- `prefix` Prepended to all entries. Good for when you need to share
153151
a keyspace with either another cache config or another application.
154-
- `probability` Probability of hitting a cache gc cleanup. Setting to 0 will disable
155-
`Cache::gc()` from ever being called automatically.
156152

157153
### FileEngine Options
158154

0 commit comments

Comments
 (0)