Resource icon

Zend Redis Cache 1.6.0

No permission to download
Thank you for this addon Xon.

Today I switched from memcached to Redis. However, I can't see the minifed css files in the cache using phpRedisAdmin. Is that option not supported? Or am I missing something?

php 7.0.6
redis 3.2.0
 
Thank you for this addon Xon.

Today I switched from memcached to Redis. However, I can't see the minifed css files in the cache using phpRedisAdmin. Is that option not supported? Or am I missing something?

php 7.0.6
redis 3.2.0
You should see various keys with Css in the name.
 
I know I should. I used to see them with memcached. But I don't see them now. The option is enabled in xenforo settings.
 
I know I should. I used to see them with memcached. But I don't see them now. The option is enabled in xenforo settings.
The only special thing it does is to rebuild the cache string so it can use the KEYS command to invalidate the cache intelligently.

But even without this, it should Just Work.
 
Xon, I get these errors a lot. The other plugin mentioned is Chat by Siropu -> https://xenforo.com/community/resources/chat-by-siropu.4309/

Code:
CredisException: read error on connection - library/Redis/lib/Credis/Client.php:1074
Generated By: Unknown Account, Today at 9:45 AM

Code:
#0 /var/www/vhosts/httpdocs/library/Redis/lib/Credis/Client.php(597): Credis_Client->__call('auth', Array)
#1 /var/www/vhosts/httpdocs/library/Redis/Cm/Cache/Backend/Redis.php(137): Credis_Client->auth('fxg894wFDSF4359...')
#2 /var/www/vhosts/httpdocs/library/Zend/Cache.php(153): Cm_Cache_Backend_Redis->__construct(Array)
#3 /var/www/vhosts/httpdocs/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Redis', Array, false, false)
#4 /var/www/vhosts/httpdocs/library/XenForo/Application.php(761): Zend_Cache::factory('Core', 'Redis', Array, Array)
#5 /var/www/vhosts/httpdocs/library/XenForo/Application.php(971): XenForo_Application->loadCache(Object(Zend_Config))
#6 /var/www/vhosts/httpdocs/library/XenForo/Application.php(1002): XenForo_Application->lazyLoad('cache', NULL)
#7 /var/www/vhosts/httpdocs/library/XenForo/Application.php(1647): XenForo_Application::get('cache')
#8 /var/www/vhosts/httpdocs/library/XenForo/Model.php(146): XenForo_Application::getCache()
#9 /var/www/vhosts/httpdocs/library/SV/RedisCache/RedisDataRegistry.php(152): XenForo_Model->_getCache(true)
#10 /var/www/vhosts/httpdocs/library/XenForo/Dependencies/Abstract.php(147): XenForo_Model_DataRegistry->getMulti(Array)
#11 /var/www/vhosts/httpdocs/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData()
#12 /var/www/vhosts/httpdocs/index.php(13): XenForo_FrontController->run()
#13 {main}

Code:
array(3) {
  ["url"] => string(43) "https://wweforums.net/index.php?chat/submit"
  ["_GET"] => array(1) {
    ["chat/submit"] => string(0) ""
  }

and here's another, slightly different,


Code:
ErrorException: unserialize(): Error at offset 0 of 2 bytes - library/SV/RedisCache/RedisDataRegistry.php:32
Generated By: KevinJamesFan, Today at 9:43 AM

Code:
#0 [internal function]: XenForo_Application::handlePhpError(8, 'unserialize(): ...', '/var/www/vhosts...', 32, Array)
#1 /var/www/vhosts/httpdocs/library/SV/RedisCache/RedisDataRegistry.php(32): unserialize(':0')
#2 /var/www/vhosts/httpdocs/library/Audentio/UIX/Model/Node.php(200): XenForo_Model_DataRegistry->get('uix_nodeCache')
#3 /var/www/vhosts/httpdocs/library/Audentio/UIX/Listener/CodeEvent.php(129): Audentio_UIX_Model_Node->getUixNodeCache()
#4 /var/www/vhosts/httpdocs/library/XenForo/CodeEvent.php(58): Audentio_UIX_Listener_CodeEvent::templateCreate('error', Array, Object(XenForo_Template_Public))
#5 /var/www/vhosts/httpdocs/library/XenForo/Template/Abstract.php(82): XenForo_CodeEvent::fire('template_create', Array, 'error')
#6 /var/www/vhosts/httpdocs/library/XenForo/Dependencies/Public.php(239): XenForo_Template_Abstract->__construct('error', Array)
#7 /var/www/vhosts/httpdocs/library/XenForo/ViewRenderer/Abstract.php(263): XenForo_Dependencies_Public->createTemplateObject('error', Array)
#8 /var/www/vhosts/httpdocs/library/XenForo/ViewRenderer/Json.php(55): XenForo_ViewRenderer_Abstract->createTemplateObject('error', Array)
#9 /var/www/vhosts/httpdocs/library/XenForo/FrontController.php(593): XenForo_ViewRenderer_Json->renderError(Array)
#10 /var/www/vhosts/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_Error), Object(XenForo_ViewRenderer_Json), Array)
#11 /var/www/vhosts/httpdocs/index.php(13): XenForo_FrontController->run()
#12 {main}

This is when users submit a message.
Any idea or solution? Will tag @Siropu too.
 
@Solidus the first one is a timeout on authentication. Try disabling authentication to redis (it doesn't help that much), and also turn off persistence. Both may be causing IO stalls, especially persistence.

The 2nd one is a case of data has been corrupted being put into the cache. You can this is code talks to raw cache backend and then uses the Xenforo cache system system to fetch the data. Try issuing 'redis-cli flushall'

If it happens again, then it is something wrong with Audentio UI.X
 
@Solidus the first one is a timeout on authentication. Try disabling authentication to redis (it doesn't help that much), and also turn off persistence. Both may be causing IO stalls, especially persistence.

The 2nd one is a case of data has been corrupted being put into the cache. You can this is code talks to raw cache backend and then uses the Xenforo cache system system to fetch the data. Try issuing 'redis-cli flushall'

If it happens again, then it is something wrong with Audentio UI.X

Thanks, Xon. I'll try these suggestions and report back.
 
Also try updating redis. It now enables TCP keepalives by default, which may help if it is a idle connection being unexpectedly killed.

3.2.1 doesn't seem to be available to me yet.
Also, redis-cli flushall is 100% safe to use, right? I've read bad things.
 
3.2.1 doesn't seem to be available to me yet.
Ah. I'm using IUS Community Project. With ius-testing enabled since they are generally quite stable.

Also, redis-cli flushall is 100% safe to use, right? I've read bad things.
Yes, but you may zap in-flight data such as how I store thread/attachment view counters.

Running the following:
redis-cli keys \*data_\* | xargs redis-cli del
Will delete just the XF cache data. Please be aware, that these entries may have been written into the database in the corrupted form. If so, you will need to take it up with the author of UI.X since they are putting garbage into the cache.
 
Top Bottom