同个服务器如果二个网站的配置文件都加了下在这个~打开网站域名A站会打开B站~测试加一个站是可以的~
'type' => 'redis', 'host' => '127.0.0.1', 'port' => '6379', 'password'=> "", 'timeout' => 86400,
事实证明是对的
'cache' => [ // 驱动方式 'type' => 'redis', // redis File // 缓存保存目录 'path' => CACHE_PATH, // 缓存前缀 每个网站都要不一样 'prefix' => 'x1qibo', // 缓存有效期 0表示永久缓存 'expire' => 0, 'host' => '127.0.0.1', 'port' => '6379', 'password'=> "", 'timeout' => 86400, ],
// 缓存前缀
'prefix' => '',
应该配置这里就好 每个网站都不一样就可以