mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Automatically use APC if available when installing
This commit is contained in:
parent
9ef29a5f1c
commit
27ccbc3d9e
2 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue