|
|
|
@ -1484,11 +1484,6 @@ post('/admin/config/performance', function () { |
|
|
|
save_config($new_config, $new_Keys); |
|
|
|
|
|
|
|
// Clear cache after setting performance
|
|
|
|
$files = array(); |
|
|
|
$draft = array(); |
|
|
|
$files = glob('content/*/blog/*.md', GLOB_NOSORT); |
|
|
|
$draft = glob('content/*/draft/*.md', GLOB_NOSORT); |
|
|
|
rebuilt_cache('all'); |
|
|
|
foreach (glob('cache/page/*.cache', GLOB_NOSORT) as $file) { |
|
|
|
unlink($file); |
|
|
|
} |
|
|
|
|