+ 1

Why is my function not abble to read the key from the cache in wincache

If(wincache_ucache_exists('hope'){ echo 'good'; }else{ wincache_ucache_add('hope', 'good', 300); echo 'cached'; } .......... The above code will aways echo out 'cached' but never 'good'...please can some one help me ...to be able to echo out 'good' when the page os refreshed ...

18th Nov 2018, 6:01 PM
Ngane Emmanuel
1 Answer
0
This you try using wincache_ucache_set instead of wincache_ucache_add. Reply me if you have another problem.
8th Mar 2023, 7:24 AM
Minh LÆ°u
Minh LÆ°u - avatar