You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Psr6Store.php
+9-2
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ public function __construct(array $options = [])
135
135
136
136
$resolver->setDefault('lock_factory', function (Options$options) {
137
137
if (!isset($options['cache_directory'])) {
138
-
thrownewMissingOptionsException('The cache_directory option is required unless you set the cache explicitly');
138
+
thrownewMissingOptionsException('The cache_directory option is required unless you set the lock_factory explicitly as by default locks are also stored in the configured cache_directory.');
139
139
}
140
140
141
141
returnnewFactory(
@@ -395,7 +395,14 @@ public function prune()
395
395
return;
396
396
}
397
397
398
-
$this->cache->prune();
398
+
// Make sure we do not have multiple pruning processes running
$this->expectExceptionMessage('The cache_directory option is required unless you set the lock_factory explicitly as by default locks are also stored in the configured cache_directory.');
0 commit comments