امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
While testing 2.3.0 Beta 1 i figured out, caching without liefetime like this:
PHP:
returns true, but
PHP:
returns false. Setting lifetime explicit to 0 also returns false.
Only Providing a livetime returns the expected cache result.
Only this works:
PHP:
In my use case i store an item which is frequently fetched...
Read more
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:
کد:
\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
