This commit is contained in:
COOL 2024-09-06 17:26:23 +08:00
parent 1783e717f7
commit 5ca76f1ac8

View File

@ -1,4 +1,5 @@
import { CoolEvent, Event } from '@cool-midway/core'; import { CoolEvent, Event } from '@cool-midway/core';
import { CachingFactory, MidwayCache } from '@midwayjs/cache-manager';
import { import {
App, App,
Config, Config,
@ -9,7 +10,6 @@ import {
} from '@midwayjs/core'; } from '@midwayjs/core';
import { IMidwayKoaApplication } from '@midwayjs/koa'; import { IMidwayKoaApplication } from '@midwayjs/koa';
import { PLUGIN_CACHE_KEY, PluginCenterService } from '../service/center'; import { PLUGIN_CACHE_KEY, PluginCenterService } from '../service/center';
import { CachingFactory, MidwayCache } from '@midwayjs/cache-manager';
import { PluginTypesService } from '../service/types'; import { PluginTypesService } from '../service/types';
/** /**
@ -39,6 +39,6 @@ export class PluginAppEvent {
async onServerReady() { async onServerReady() {
await this.midwayCache.set(PLUGIN_CACHE_KEY, []); await this.midwayCache.set(PLUGIN_CACHE_KEY, []);
this.pluginCenterService.init(); this.pluginCenterService.init();
this.pluginTypesService.reGenerate(); // this.pluginTypesService.reGenerate();
} }
} }