Closed piernik closed 7 years ago
Well, that depends on your configuration, what cache strategy do you use? Where do you define time? Please elaborate a bit.
I though that 10000
is time in miliseconds - is it not?
That depends on your configuration, what caching strategy did you configure?
The first one:
$cacheProvider = new DoctrineCacheAdapter(new ArrayCache());
$cacheStrategy = new LifetimeCacheStrategy($cacheProvider);
$cacheExtension = new Extension($cacheStrategy);
@piernik The array cache will not persist across requests. It just caches in an array. That's mainly useful for demo purposes or perhaps if you are re-using the same blocks in one request. If you use doctrine cache make sure to set up a different cache, e.g. apc or memcache.
In php I'm defining
time=time();
This is my twig code:Every time I hit refresh I have new timestamp. Doesn't it suppose to be fixed for 10 seconds?