You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When memcached driver is used, this will result in query not being cached at all. Memcached driver does not support floatval values. It effectivly terminates 0.1 to 0.
Offtopic: why laravel doesn't support caching in seconds? Implementing interval in seconds is part of every possible caching system. There are situations when you need to refresh data more often than one minute. This is very weird, that you force people to make steps like 0.1*60s, in order to get proper caching with seconds interval.
Description:
When you put float value to Cache::remember function and the cache driver is memcached, the data will not get cached at all.
Howeer when you put float value and the cache driver is file it will work properly.
Steps To Reproduce:
In this case when "file" driver is used, the cache time will be 0.1*60s = 6s. This works okay.
When memcached driver is used, this will result in query not being cached at all. Memcached driver does not support floatval values. It effectivly terminates 0.1 to 0.
Offtopic: why laravel doesn't support caching in seconds? Implementing interval in seconds is part of every possible caching system. There are situations when you need to refresh data more often than one minute. This is very weird, that you force people to make steps like 0.1*60s, in order to get proper caching with seconds interval.
Fix:
class MemcachedStore, modify toTimestamp() to:
The text was updated successfully, but these errors were encountered: