kopia lustrzana https://github.com/pixelfed/pixelfed
Merge pull request #960 from pixelfed/frontend-ui-refactor
Update Localization cache time, closes #959pull/1005/head
commit
cdb09b2fb0
|
@ -9,7 +9,7 @@ class Localization {
|
|||
|
||||
public static function languages()
|
||||
{
|
||||
return Cache::remember('core:localization:languages', now()->addDays(14), function() {
|
||||
return Cache::remember('core:localization:languages', now()->addDays(1), function() {
|
||||
$dir = resource_path('lang');
|
||||
return Arr::flatten(array_diff(scandir($dir), array('..', '.', 'vendor')));
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue