mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:07:06 +00:00
no message
This commit is contained in:
parent
7be1171004
commit
12ecf4de40
@ -6,6 +6,7 @@ use App\Models\User;
|
||||
use App\Module\Apps\Apps;
|
||||
use App\Module\Base;
|
||||
use App\Module\Timer;
|
||||
use Cache;
|
||||
use Request;
|
||||
|
||||
/**
|
||||
@ -98,7 +99,16 @@ class AppsController extends AbstractController
|
||||
User::auth();
|
||||
//
|
||||
$appName = Request::input('app_name');
|
||||
//
|
||||
$cacheKey = 'apps_entry:' . $appName;
|
||||
$cacheData = Cache::remember($cacheKey, now()->addHour(), function () use ($appName) {
|
||||
return Apps::getAppEntryPoints($appName);
|
||||
});
|
||||
if (Base::isError($cacheData)) {
|
||||
Cache::forget($cacheKey);
|
||||
}
|
||||
//
|
||||
return $cacheData;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -177,6 +177,10 @@ class Apps
|
||||
*/
|
||||
public static function dockerComposeFinalize(string $appName, string $status): array
|
||||
{
|
||||
// 清理入口缓存
|
||||
Cache::forget('apps_entry:' . $appName);
|
||||
Cache::forget('apps_entry:');
|
||||
|
||||
// 获取当前应用信息
|
||||
$appInfo = self::getAppConfig($appName);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user