* [refac] add configuration to cache the table zt_userview.

This commit is contained in:
liugang
2024-12-30 09:42:38 +08:00
committed by 朱金勇
parent e806a23761
commit 52cded6a8f
+8 -7
View File
@@ -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']];