I am running a PHP application on azure and am experiencing some strange behaviour: This snippet runns in a Console command:
public function fire(Illuminate\Contracts\Cache\Repository $cache) {
$cache->forever('someKey', 'someValue');
var_dump($cache->get('someKey'));
}
The output is:
NULL
Accessing the value through wincache_ucache_get after executing the command also returns NULL (with prefix and without). Has anyone a clue on this?
P.S.: As per phpinfo() the wincache usercache is enabled: wincache.ucenabled On
After some more debugging i know some more facts:
In an isolated php file wincache_ucache_set
and wincache_ucache_get
work perfectly.
However, the call to wincache_ucache_set
in Illuminate\Cache\WinCacheStore
returns false
.