In L5.8 Cache duratrion is now defined in seconds

So we can pass the value straight in without converting to minutes
This commit is contained in:
Jonny Barnes 2019-03-17 13:49:42 +00:00
parent 4b60d6bacd
commit a907df59c0

View file

@ -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;
}