add:新增服务缓存,提高性能
This commit is contained in:
@@ -127,7 +127,9 @@ class CatchAdminService extends Service
|
||||
*/
|
||||
protected function registerServices()
|
||||
{
|
||||
$services = CatchAdmin::getEnabledService();
|
||||
$services = file_exists(CatchAdmin::getCacheServicesFile()) ?
|
||||
include CatchAdmin::getCacheServicesFile() :
|
||||
CatchAdmin::getEnabledService();
|
||||
|
||||
foreach ($services as $service) {
|
||||
if (class_exists($service)) {
|
||||
|
Reference in New Issue
Block a user