bug apc lifetime #16627
Replies: 1 comment · 2 replies
-
This simple code seems to be setting the lifetime just fine: <?php
use Phalcon\Cache\AdapterFactory;
use Phalcon\Cache\Cache;
use Phalcon\Storage\SerializerFactory;
require_once 'vendor/autoload.php';
$options = [
'lifetime' => 8400,
'prefix' => 'cache-',
];
$adapter = (new AdapterFactory(new SerializerFactory()))->newInstance('apcu',$options);
$cache = new Cache($adapter);
var_dump($cache); Result:
Do you have additional information that shows how the lifetime is not set? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I am checking in apc.php
|
Beta Was this translation helpful? Give feedback.
All reactions
-
if I do this print_r / var_dump I also have that it is configured
|
Beta Was this translation helpful? Give feedback.
-
I have this code/config for using apcu, but the lifetime stays on the default 3600[1]. The prefix is correctly applied.
these config entries.
[1]
https://docs.phalcon.io/latest/cache/?h=apc#apcu
Beta Was this translation helpful? Give feedback.
All reactions