From a907df59c07cce3a3433a215963990fc85f70091 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sun, 17 Mar 2019 13:49:42 +0000 Subject: [PATCH] In L5.8 Cache duratrion is now defined in seconds So we can pass the value straight in without converting to minutes --- app/Models/Note.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Note.php b/app/Models/Note.php index 9150d051..d0993171 100644 --- a/app/Models/Note.php +++ b/app/Models/Note.php @@ -355,7 +355,7 @@ class Note extends Model } catch (\Exception $e) { return null; } - Cache::put($tweetId, $oEmbed, ($oEmbed->cache_age / 60)); + Cache::put($tweetId, $oEmbed, ($oEmbed->cache_age)); return $oEmbed; }