From 52cded6a8f0de25098e60dfb7d06fb780abb1bd0 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 29 Nov 2024 11:01:40 +0800 Subject: [PATCH] * [refac] add configuration to cache the table zt_userview. --- config/cache.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/config/cache.php b/config/cache.php index 1aa4233c1d..7673b1ac63 100644 --- a/config/cache.php +++ b/config/cache.php @@ -19,13 +19,14 @@ $config->cache->client->enable = false; // 是否开启客户端缓存。Enable // The KEY_FIELD is the field of the table which is used to generate the key of the cache. It must be unique in the table. $config->cache->raw = []; -$config->cache->raw[TABLE_CONFIG] = 'id'; -$config->cache->raw[TABLE_BUILD] = 'id'; -$config->cache->raw[TABLE_MODULE] = 'id'; -$config->cache->raw[TABLE_PRODUCT] = 'id'; -$config->cache->raw[TABLE_PROJECT] = 'id'; -$config->cache->raw[TABLE_RELEASE] = 'id'; -$config->cache->raw[TABLE_USER] = 'account'; +$config->cache->raw[TABLE_CONFIG] = 'id'; +$config->cache->raw[TABLE_BUILD] = 'id'; +$config->cache->raw[TABLE_MODULE] = 'id'; +$config->cache->raw[TABLE_PRODUCT] = 'id'; +$config->cache->raw[TABLE_PROJECT] = 'id'; +$config->cache->raw[TABLE_RELEASE] = 'id'; +$config->cache->raw[TABLE_USER] = 'account'; +$config->cache->raw[TABLE_USERVIEW] = 'account'; $config->cache->res = []; $config->cache->res[TABLE_MODULE][] = ['name' => 'CACHE_MODULE_TREE', 'fields' => ['type', 'root', 'branch']];