Skip to content

Commit 3a545ac

Browse files
committed
rimosso lock
1 parent ec2e255 commit 3a545ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Console/ProcessCacheInvalidationEventsCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ public function handle(): void
259259
$lockTimeout = (int) config('super_cache_invalidate.lock_timeout');
260260

261261
// Acquisisco il lock in modo da essere sicura che le esecuzioni non si accavallino
262-
$lockValue = $this->helper->acquireShardLock($this->shardId, $this->priority, $lockTimeout, $this->connection_name);
262+
// $lockValue = $this->helper->acquireShardLock($this->shardId, $this->priority, $lockTimeout, $this->connection_name);
263263
$this->logIf('Starting Elaborazione ...' . $this->invalidation_window);
264-
if (!$lockValue) {
265-
return;
266-
}
264+
// if (!$lockValue) {
265+
// return;
266+
//}
267267
$startTime = microtime(true);
268268
try {
269269
$this->processEvents();
@@ -276,7 +276,7 @@ public function handle(): void
276276
$e->getTraceAsString()
277277
), 'error');
278278
} finally {
279-
$this->helper->releaseShardLock($this->shardId, $this->priority, $lockValue, $this->connection_name);
279+
// $this->helper->releaseShardLock($this->shardId, $this->priority, $lockValue, $this->connection_name);
280280
}
281281
$executionTime = (microtime(true) - $startTime) * 1000;
282282
$this->logIf('Fine Elaborazione - Tempo di esecuzione: ' . $executionTime . ' millisec.');

0 commit comments

Comments
 (0)