cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

duplicate prefix in cache

Open kenjikobe opened this issue 14 years ago • 0 comments

if I set a prefix in the cache backend it's duplicate in the file name-

$frontend = new Phalcon\Cache\Frontend\Output(array( 'lifetime' => 3600 ));

$cache = new Phalcon\Cache\Backend\File($frontend, array( 'cacheDir' => DIR.'./app/cache/', 'prefix' => 'jp' ));

in the controller:

$this->view->cache(array("key" => "news", "lifetime" => 4800));

the file produced is:

jpjpnews

it's duplicated the prefix

kenjikobe avatar Sep 13 '12 07:09 kenjikobe