mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
moved note about 'default' cache configuration to the APC config docblock
This commit is contained in:
parent
588090da21
commit
54869fc965
1 changed files with 1 additions and 4 deletions
|
@ -235,6 +235,7 @@
|
|||
* Pick the caching engine to use. If APC is enabled use it.
|
||||
* If running via cli - apc is disabled by default. ensure it's available and enabled in this case
|
||||
*
|
||||
* Note: 'default' and other application caches should be configured in app/Config/bootstrap.php
|
||||
*/
|
||||
$engine = 'File';
|
||||
if (extension_loaded('apc') && function_exists('apc_dec') && (php_sapi_name() !== 'cli' || ini_get('apc.enable_cli'))) {
|
||||
|
@ -270,7 +271,3 @@ Cache::config('_cake_model_', array(
|
|||
'serialize' => ($engine === 'File'),
|
||||
'duration' => $duration
|
||||
));
|
||||
|
||||
/**
|
||||
* Note: 'default' and other application caches should be configured in app/Config/bootstrap.php
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue