Fixe cache_data() für Hashes (Crash bei Bitly)
This commit is contained in:
parent
0d434db39c
commit
4b2a36c424
@ -729,7 +729,7 @@ function cache_data(plugin, query, data, timeout, typ, hash_field)
|
|||||||
redis:sadd(hash, str)
|
redis:sadd(hash, str)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
redis:hset(hash, hash_field, data)
|
redis:hmset(hash, data)
|
||||||
end
|
end
|
||||||
if timeout then
|
if timeout then
|
||||||
redis:expire(hash, timeout)
|
redis:expire(hash, timeout)
|
||||||
|
Reference in New Issue
Block a user