From a8e74a558ce1047056bef756b954a20c53031826 Mon Sep 17 00:00:00 2001 From: butschster Date: Sun, 21 Apr 2024 17:51:24 +0400 Subject: [PATCH] Clear all github cache --- app/app/src/Github/Client.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/app/src/Github/Client.php b/app/app/src/Github/Client.php index 782e944..0f01249 100644 --- a/app/app/src/Github/Client.php +++ b/app/app/src/Github/Client.php @@ -67,11 +67,6 @@ private function getCacheKey(string $repository, string $prefix): string public function clearCache(string $repository): void { - $refl = new \ReflectionClass($this); - foreach ($refl->getMethods() as $method) { - if ($method->isPublic()) { - $this->cache->delete($this->getCacheKey($repository, $method->getName())); - } - } + $this->cache->clear(); } }