@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | DB::table('cache_invalidation_timestamps') |
| 311 | 311 | //DB::table(DB::raw("`cache_invalidation_timestamps` PARTITION ({$partitionCache_invalidation_timestamps})")) |
| 312 | - ->updateOrInsert( |
|
| 312 | + ->updateOrInsert( |
|
| 313 | 313 | ['identifier_type' => $type, 'identifier' => $identifier], |
| 314 | 314 | ['last_invalidated' => $now] |
| 315 | 315 | ) |
@@ -392,9 +392,9 @@ discard block |
||
| 392 | 392 | // Mark event as processed |
| 393 | 393 | //DB::table(DB::raw("`cache_invalidation_events` PARTITION ({$partitionCache_invalidation_events}, {$partitionCache_invalidation_events_processed})")) |
| 394 | 394 | DB::table("cache_invalidation_events") |
| 395 | - ->whereIn('id', array_column($eventsToUpdate, 'id')) |
|
| 396 | - ->whereIn('partition_key', array_column($eventsToUpdate, 'partition_key')) |
|
| 397 | - ->update(['processed' => 1]) |
|
| 395 | + ->whereIn('id', array_column($eventsToUpdate, 'id')) |
|
| 396 | + ->whereIn('partition_key', array_column($eventsToUpdate, 'partition_key')) |
|
| 397 | + ->update(['processed' => 1]) |
|
| 398 | 398 | ; |
| 399 | 399 | // Riattiva i controlli |
| 400 | 400 | DB::statement('SET UNIQUE_CHECKS=1;'); |