mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-26 22:40:45 +00:00
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]);
|
unset($json[$index]);
|
||||||
$json = json_encode(array_values($json));
|
$json = json_encode(array_values($json));
|
||||||
ConfigCacheService::put('app.rules', $json);
|
ConfigCacheService::put('app.rules', $json);
|
||||||
|
Cache::forget('api:v1:instance-data:rules');
|
||||||
|
Cache::forget('api:v1:instance-data-response-v1');
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,7 +175,7 @@ trait AdminSettingsController
|
||||||
ConfigCacheService::put('app.rules', json_encode(array_values($json)));
|
ConfigCacheService::put('app.rules', json_encode(array_values($json)));
|
||||||
}
|
}
|
||||||
Cache::forget('api:v1:instance-data:rules');
|
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')) {
|
if($request->filled('account_autofollow_usernames')) {
|
||||||
|
|
Loading…
Reference in a new issue