colinmollenhour / Cm_Cache_Backend_Redis

A Zend_Cache backend for Redis with full support for tags (works great with Magento)
Other
390 stars 142 forks source link

Casting to INT on line 516 fixes Redis Expire Warning Redis::expire()… #137

Closed seansan closed 5 years ago

seansan commented 5 years ago

… expects parameter 2 to be integer, string given

Warning: Redis::expire() expects parameter 2 to be integer, string given in app/code/local/Credis/Client.php on line 1141

0 [internal function]: mageCoreErrorHandler(2, 'Redis::expire()...', '/var/www/html/s...', 1141, Array)

1 app/code/local/Credis/Client.php(1141): Redis->expire('zc:k:64d_7C0BC4...', 'null')

2 app/code/community/Cm/Cache/Backend/Redis.php(597): Credis_Client->__call('expire', Array)

3 lib/Zend/Cache/Core.php(390): Cm_Cache_Backend_Redis->save('', '64d_7C0BC419974...', Array, 'null')

4 lib/Varien/Cache/Core.php(145): Zend_Cache_Core->save('', '64d_7C0BC419974...', Array, 'null', 8)

colinmollenhour commented 5 years ago

Nice work! Thanks!