| | |
| | | return false; |
| | | } |
| | | |
| | | Cache::invalidateGroup('queue'); |
| | | // $this->invalidateUser($op->userId); |
| | | |
| | | $this->invalidateUser($op->userId); |
| | | |
| | | return true; |
| | | } |
| | |
| | | error_log('[Storage::saveFinal] DB error: ' . $wpdb->last_error); |
| | | return false; |
| | | } |
| | | Cache::invalidateGroup('queue'); |
| | | // $this->invalidateQueueCache(); |
| | | // $this->invalidateUser($op->userId); |
| | | $this->invalidateQueueCache(); |
| | | $this->invalidateUser($op->userId); |
| | | |
| | | return true; |
| | | } |
| | |
| | | ]); |
| | | |
| | | if ($result) { |
| | | // $this->invalidateUser($op->userId); |
| | | Cache::invalidateGroup('queue'); |
| | | $this->invalidateUser($op->userId); |
| | | } |
| | | |
| | | return $result !== false; |
| | |
| | | |
| | | private function invalidateUser(int $userId): void |
| | | { |
| | | $this->cache->forget($userId); |
| | | Cache::touch($userId); |
| | | Cache::for($userId.'_queue')->flush(); |
| | | } |
| | | public function getLastError(): string |
| | | { |