Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

[SOLVED] I don't want to Phalcon add prefix on my cache keys, does the following code work?

Code:

$front = new Phalcon\Cache\Frontend\Data([]);
$cache = new Phalcon\Cache\Backend\Apc($front, ['prefix' => null]);

or

$cache = new Phalcon\Cache\Backend\Apc($front, ['prefix' => '‘]);

Thanks.

solution:

  1. change phalcon source code
  2. change existing cache management code


17.1k

by default, phalcon add _PHCA before each key, I don't want to add any prefix.



31.3k
Accepted
answer


17.1k

OK, Looks like I need to change the source code, otherwise, I need to change my existing cache management code.