mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
Fix cache for plugin manager
This commit is contained in:
parent
39d3c683bc
commit
4e86f4cb02
3 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,7 @@ if ($admin['user_type'] != 'Admin') {
|
|||
}
|
||||
|
||||
$cache = File::pathFixer('system/cache/plugin_repository.json');
|
||||
if (file_exists($cache) && time() - filemtime($cache) > (24 * 60 * 60)) {
|
||||
if (file_exists($cache) && time() - filemtime($cache) < (24 * 60 * 60)) {
|
||||
$json = json_decode(file_get_contents($cache), true);
|
||||
} else {
|
||||
$data = file_get_contents($plugin_repository);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue