mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-23 23:17:05 +08:00
Fix cache for plugin manager
This commit is contained in:
parent
39d3c683bc
commit
4e86f4cb02
3 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
- Change registration design Form
|
||||
- Add Setting to disable Voucher
|
||||
- Fix Title for PPPOE plans
|
||||
- Fix Plugin Cache
|
||||
## 2023.6.20
|
||||
|
||||
- Hide time for Created date.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"version": "2023.6.20"
|
||||
"version": "2023.7.28"
|
||||
}
|
Loading…
Reference in a new issue