From a8233aaf4abbdc0264a833d292b034cb9a2cd457 Mon Sep 17 00:00:00 2001 From: chunice Date: Tue, 15 Mar 2016 14:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=A1=86=E6=9E=B6=E6=83=AF?= =?UTF-8?q?=E4=BE=8B=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convention.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/convention.php b/convention.php index 6c7a5e42..3854ddfe 100644 --- a/convention.php +++ b/convention.php @@ -121,7 +121,9 @@ return [ // +---------------------------------------------------------------------- 'log' => [ - 'type' => 'File', // 支持 file socket trace sae + // 日志记录方式,支持 file socket trace sae + 'type' => 'File', + // 日志保存目录 'path' => LOG_PATH, ], @@ -130,9 +132,13 @@ return [ // +---------------------------------------------------------------------- 'cache' => [ + // 驱动方式 'type' => 'File', + // 缓存保存目录 'path' => CACHE_PATH, + // 缓存前缀 'prefix' => '', + // 缓存有效期 0表示永久缓存 'expire' => 0, ], @@ -142,9 +148,13 @@ return [ 'session' => [ 'id' => '', - 'var_session_id' => '', // SESSION_ID的提交变量,解决flash上传跨域 + // SESSION_ID的提交变量,解决flash上传跨域 + 'var_session_id' => '', + // SESSION 前缀 'prefix' => 'think', + // 驱动方式 支持redis memcache memcached 'type' => '', + // 是否自动开启 SESSION 'auto_start' => true, ],