Cache without lifetime not working

T

TnT

Guest
Member
While testing 2.3.0 Beta 1 i figured out, caching without liefetime like this:

PHP:

\XF::app()->cache()->save('test', 'works');

returns true, but

PHP:

\XF::app()->cache()->fetch('test');

returns false. Setting lifetime explicit to 0 also returns false.
Only Providing a livetime returns the expected cache result.

Only this works:

PHP:

Code:
\XF::app()->cache()->save('test', 'works', 10);
\XF::app()->cache()->fetch('test');

In my use case i store an item which is frequently fetched...

Read more
Cache without lifetime not working

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    R @ reeqz: https://imgur.com/a/E5IHriw what could this mean? plugin strikepractice
    Top