From 7921bd62d9313dccaac0206bdb2dcad6921033b7 Mon Sep 17 00:00:00 2001 From: shimon Date: Thu, 10 Oct 2024 12:11:35 +0300 Subject: [PATCH] debug --- app/controllers/shared/api.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 43a86b837d..8ddb9c61f7 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -753,10 +753,8 @@ App::shutdown() ); $timestamp = 60 * 60 * 24 * 30; - $data = $cache->load($key, $timestamp); - var_dump($cacheLog->getAttribute('signature')); - var_dump(empty($data)); - if ($signature !== $cacheLog->getAttribute('signature') || empty($data)) { + $cacheFile = $cache->load($key, $timestamp); + if ($signature !== $cacheLog->getAttribute('signature') || empty($cacheFile)) { $cache->save($key, $data['payload']); } }