mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-02 15:51:49 +02:00
Added caching for CP routes and other speed optimizations
This commit is contained in:
parent
d53f602122
commit
78c75afe99
4 changed files with 14 additions and 1 deletions
|
@ -267,6 +267,12 @@ class ReportsController extends Controller
|
|||
rmdir($dir->getRealPath());
|
||||
}
|
||||
}
|
||||
|
||||
// Clear Slim route cache if it exists
|
||||
$routeCacheFile = $cacheDir . '/routes.php';
|
||||
if (file_exists($routeCacheFile)) {
|
||||
unlink($routeCacheFile);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$result = [
|
||||
'success' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue