Fix cache for plugin manager
This commit is contained in:
parent
39d3c683bc
commit
4e86f4cb02
@ -9,6 +9,7 @@
|
|||||||
- Change registration design Form
|
- Change registration design Form
|
||||||
- Add Setting to disable Voucher
|
- Add Setting to disable Voucher
|
||||||
- Fix Title for PPPOE plans
|
- Fix Title for PPPOE plans
|
||||||
|
- Fix Plugin Cache
|
||||||
## 2023.6.20
|
## 2023.6.20
|
||||||
|
|
||||||
- Hide time for Created date.
|
- Hide time for Created date.
|
||||||
|
@ -20,7 +20,7 @@ if ($admin['user_type'] != 'Admin') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$cache = File::pathFixer('system/cache/plugin_repository.json');
|
$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);
|
$json = json_decode(file_get_contents($cache), true);
|
||||||
} else {
|
} else {
|
||||||
$data = file_get_contents($plugin_repository);
|
$data = file_get_contents($plugin_repository);
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2023.6.20"
|
"version": "2023.7.28"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user