Update config() to config_cache()

This commit is contained in:
Daniel Supernault 2021-05-11 20:14:51 -06:00
parent 3a9203e039
commit 7895097fc1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
6 changed files with 149 additions and 149 deletions

View file

@ -92,7 +92,7 @@ class ComposeController extends Controller
abort_if($limitReached == true, 429);
if(config('pixelfed.enforce_account_limit') == true) {
if(config_cache('pixelfed.enforce_account_limit') == true) {
$size = Cache::remember($user->storageUsedKey(), now()->addDays(3), function() use($user) {
return Media::whereUserId($user->id)->sum('size') / 1000;
});