mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
fixing cache engine prefix
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6365 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7b2627caa2
commit
34bbeb0d39
4 changed files with 7 additions and 4 deletions
|
@ -379,7 +379,7 @@ class CacheEngine extends Object {
|
|||
* @access public
|
||||
*/
|
||||
function init($settings = array()) {
|
||||
$this->settings = array_merge(array('duration'=> 3600, 'probability'=> 100), $settings);
|
||||
$this->settings = array_merge(array('prefix' => 'cake_', 'duration'=> 3600, 'probability'=> 100), $settings);
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -49,7 +49,8 @@ class MemcacheEngineTest extends UnitTestCase {
|
|||
|
||||
function testSettings() {
|
||||
$settings = Cache::settings();
|
||||
$expecting = array('duration'=> 3600,
|
||||
$expecting = array('prefix' => 'cake_',
|
||||
'duration'=> 3600,
|
||||
'probability' => 100,
|
||||
'servers' => array('127.0.0.1'),
|
||||
'compress' => false,
|
||||
|
|
3
cake/tests/cases/libs/cache/model.test.php
vendored
3
cake/tests/cases/libs/cache/model.test.php
vendored
|
@ -63,7 +63,8 @@ class ModelEngineTest extends CakeTestCase {
|
|||
|
||||
function testSettings() {
|
||||
$settings = Cache::settings();
|
||||
$expecting = array('duration'=> 3600, //[optional]
|
||||
$expecting = array('prefix' => 'cake_',
|
||||
'duration'=> 3600, //[optional]
|
||||
'probability'=> 100, //[optional]
|
||||
'className' => 'CacheTestModel', //[optional]
|
||||
'fields' => array('data', 'expires'), //[optional]
|
||||
|
|
3
cake/tests/cases/libs/cache/xcache.test.php
vendored
3
cake/tests/cases/libs/cache/xcache.test.php
vendored
|
@ -49,7 +49,8 @@ class XcacheEngineTest extends UnitTestCase {
|
|||
|
||||
function testSettings() {
|
||||
$settings = Cache::settings();
|
||||
$expecting = array('duration'=> 3600,
|
||||
$expecting = array('prefix' => 'cake_',
|
||||
'duration'=> 3600,
|
||||
'probability' => 100,
|
||||
'engine' => 'Xcache',
|
||||
'PHP_AUTH_USER' => 'cake',
|
||||
|
|
Loading…
Add table
Reference in a new issue