Update ProfileController, fix atom feed cache ttl. Fixes #5093

This commit is contained in:
Daniel Supernault 2024-05-18 03:09:22 -06:00
parent e03e7c0d73
commit 921e29659f
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -269,7 +269,7 @@ class ProfileController extends Controller
abort_if($aiCheck, 404);
$enabled = Cache::remember('profile:atom:enabled:'.$profile['id'], 84600, function () use ($profile) {
$enabled = Cache::remember('profile:atom:enabled:'.$profile['id'], 86400, function () use ($profile) {
$uid = User::whereProfileId($profile['id'])->first();
if (! $uid) {
return false;