Changeset 3885
- Timestamp:
- Sep 7, 2007, 11:40:53 AM (15 years ago)
- Location:
- OpenPNE/trunk
- Files:
-
- 2 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/trunk/config.php.sample
r3863 r3885 64 64 //有効にした場合は、最新情報の表示に遅延が起こることがあります 65 65 define('OPENPNE_USE_FUNCTION_CACHE', false); 66 67 // このオプションを有効にするためにはOPENPNE_USE_FUNCTION_CACHEをtrueにする必要があります。 68 // ファンクションキャッシュのキャッシュを保存するストレージにmemcacheを使用 69 define('OPENPNE_USE_FUNCTION_CACHE_MEMCACHE', false); 70 71 // OPENPNE_USE_FUNCTION_CACHE_MEMCACHEがtrueの場合の 72 // ファンクションキャッシュ用memcacheサーバ設定 73 $GLOBALS['_OPENPNE_MEMCACHE_LIST']['func_cache'] = array( 74 'dsn' => array( 75 'hostspec' => '127.0.0.1', 76 ), 77 ); 66 78 67 79 // MySQL ヒント使用設定 -
OpenPNE/trunk/webapp/lib/util/cache.php
r3075 r3885 9 9 static $instance; 10 10 if (empty($instance)) { 11 include_once 'Cache/Lite/Function.php'; 12 $options = array( 13 'cacheDir' => OPENPNE_VAR_DIR . '/function_cache/', 14 'hashedDirectoryLevel' => 2, 15 'hashedDirectoryUmask' => 0777, 16 ); 17 $instance = new Cache_Lite_Function($options); 11 if (OPENPNE_USE_FUNCTION_CACHE_MEMCACHE) { 12 include_once 'OpenPNE/Cache.php'; 13 $instance = new OpenPNE_Cache_Function('memcache', $GLOBALS['_OPENPNE_MEMCACHE_LIST']['func_cache']); 14 } else { 15 include_once 'Cache/Lite/Function.php'; 16 $options = array( 17 'cacheDir' => OPENPNE_VAR_DIR . '/function_cache/', 18 'hashedDirectoryLevel' => 2, 19 'hashedDirectoryUmask' => 0777, 20 ); 21 $instance = new Cache_Lite_Function($options); 22 } 18 23 } 19 24 return $instance;
Note: See TracChangeset
for help on using the changeset viewer.