- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,417
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
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...
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:
In my use case i store an item which is frequently fetched...
نام موضوع : Cache without lifetime not working