Automatically use APC if available when installing

This commit is contained in:
Kijin Sung 2020-09-07 20:40:17 +09:00
parent 9ef29a5f1c
commit 27ccbc3d9e
2 changed files with 9 additions and 0 deletions

View file

@ -252,6 +252,12 @@ class installController extends install
Rhymix\Framework\Config::set('lock.allow', array('127.0.0.1', $user_ip_range));
}
// Use APC cache if available.
if (function_exists('apcu_exists'))
{
Rhymix\Framework\Config::set('cache.type', 'apc');
}
// Save the new configuration.
Rhymix\Framework\Config::save();