forked from mirror/pixelfed
Update AdminSettingsController, fix cache invalidation when updating rules
This commit is contained in:
parent
243fcac7d5
commit
fe6787f75e
1 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,8 @@ trait AdminSettingsController
|
|||
unset($json[$index]);
|
||||
$json = json_encode(array_values($json));
|
||||
ConfigCacheService::put('app.rules', $json);
|
||||
Cache::forget('api:v1:instance-data:rules');
|
||||
Cache::forget('api:v1:instance-data-response-v1');
|
||||
return 200;
|
||||
}
|
||||
|
||||
|
@ -173,7 +175,7 @@ trait AdminSettingsController
|
|||
ConfigCacheService::put('app.rules', json_encode(array_values($json)));
|
||||
}
|
||||
Cache::forget('api:v1:instance-data:rules');
|
||||
Cache::forget('api:v1:instance-data-response');
|
||||
Cache::forget('api:v1:instance-data-response-v1');
|
||||
}
|
||||
|
||||
if($request->filled('account_autofollow_usernames')) {
|
||||
|
|
Loading…
Reference in a new issue