Browse Source

Fix /admin/config/performance

pull/475/head
Yaya Laressa 4 years ago
committed by GitHub
parent
commit
5bf1fdd2d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      system/htmly.php

+ 11
- 0
system/htmly.php View File

@ -1482,6 +1482,17 @@ 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);
}
$login = site_url() . 'admin/config/performance';
header("location: $login");
} else {


Loading…
Cancel
Save