cphalcon
cphalcon copied to clipboard
duplicate prefix in cache
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