Resource icon

Zend Redis Cache 1.6.0

No permission to download
It works pretty fine on my test vps.
But I don't notice the speed improvement :D
What other settings to fine tune?
Like how much memory redis will use? :)
Thanks!
 
Saving style property got me an error:
Code:
Not Supported

XenForo_Model_DataRegistry->deleteMulti() in SV/RedisCache/XenForo/Model/Style.php at line 24
SV_RedisCache_XenForo_Model_Style->styleCachePurge() in SV/RedisCache/XenForo/Model/Style.php at line 8
SV_RedisCache_XenForo_Model_Style->rebuildStyleCache() in XenForo/DataWriter/Style.php at line 169
XenForo_DataWriter_Style->_rebuildCache() in XenForo/DataWriter/Style.php at line 160
XenForo_DataWriter_Style->_postSave() in XenForo/DataWriter.php at line 1409
XenForo_DataWriter->save() in XenForo/Model/StyleProperty.php at line 771
XenForo_Model_StyleProperty->updatePropertyCacheInStyle() in XenForo/Model/StyleProperty.php at line 629
XenForo_Model_StyleProperty->rebuildPropertyCacheInStyleAndChildren() in XenForo/Model/StyleProperty.php at line 1301
XenForo_Model_StyleProperty->saveStylePropertiesInStyleFromInput() in XenForo/ControllerAdmin/Style.php at line 362
XenForo_ControllerAdmin_Style->actionStylePropertiesSave() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /admin.php at line 13
 
Code:
Server Error Log
Error Info
Exception: Not Supported - library/SV/RedisCache/RedisDataRegistry.php:133
Generated By: Draft, A moment ago
Stack Trace
#0 /library/SV/RedisCache/XenForo/Model/Style.php(24): XenForo_Model_DataRegistry->deleteMulti('xfCssCache_styl...')
#1 /library/SV/RedisCache/XenForo/Model/Style.php(8): SV_RedisCache_XenForo_Model_Style->styleCachePurge()
#2 /library/XenForo/DataWriter/Style.php(169): SV_RedisCache_XenForo_Model_Style->rebuildStyleCache()
#3 /library/XenForo/DataWriter/Style.php(160): XenForo_DataWriter_Style->_rebuildCache()
#4 /library/XenForo/DataWriter.php(1409): XenForo_DataWriter_Style->_postSave()
#5 /library/XenForo/Model/StyleProperty.php(771): XenForo_DataWriter->save()
#6 /library/XenForo/Model/StyleProperty.php(629): XenForo_Model_StyleProperty->updatePropertyCacheInStyle(1, Array, Array)
#7 /library/XenForo/Model/StyleProperty.php(1301): XenForo_Model_StyleProperty->rebuildPropertyCacheInStyleAndChildren(1)
#8 /library/XenForo/ControllerAdmin/Style.php(362): XenForo_Model_StyleProperty->saveStylePropertiesInStyleFromInput(1, Array, Array)
#9 /library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Style->actionStylePropertiesSave()
#10 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /admin.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(75) "/admin.php?styles/basic-blue.1/style-properties/save"
  ["_GET"] => array(1) {
    ["styles/basic-blue_1/style-properties/save"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["set"] => array(3) {
      ["imagePath"] => string(1) "1"
      ["animationSpeedMultiplier"] => string(1) "1"
      ["fbColorScheme"] => string(1) "1"
    }
    ["checkboxes"] => array(2) {
      [0] => string(5) "48292"
      [1] => string(5) "48370"
    }
    ["group"] => string(7) "general"
    ["_xfToken"] => string(8) "********"
    ["tab_index"] => string(1) "0"
    ["tab_id"] => string(0) ""
    ["_xfStylePropertiesData"] => string(16309)
 
Code:
Server Error Log
Error Info
Exception: Not Supported - library/SV/RedisCache/RedisDataRegistry.php:133
Generated By: Draft, A moment ago
Stack Trace
#0 /library/SV/RedisCache/XenForo/Model/Style.php(24): XenForo_Model_DataRegistry->deleteMulti('xfCssCache_styl...')
#1 /library/SV/RedisCache/XenForo/Model/Style.php(8): SV_RedisCache_XenForo_Model_Style->styleCachePurge()
#2 /library/XenForo/DataWriter/Style.php(169): SV_RedisCache_XenForo_Model_Style->rebuildStyleCache()
#3 /library/XenForo/DataWriter/Style.php(160): XenForo_DataWriter_Style->_rebuildCache()
#4 /library/XenForo/DataWriter.php(1409): XenForo_DataWriter_Style->_postSave()
#5 /library/XenForo/Model/StyleProperty.php(771): XenForo_DataWriter->save()
#6 /library/XenForo/Model/StyleProperty.php(629): XenForo_Model_StyleProperty->updatePropertyCacheInStyle(1, Array, Array)
#7 /library/XenForo/Model/StyleProperty.php(1301): XenForo_Model_StyleProperty->rebuildPropertyCacheInStyleAndChildren(1)
#8 /library/XenForo/ControllerAdmin/Style.php(362): XenForo_Model_StyleProperty->saveStylePropertiesInStyleFromInput(1, Array, Array)
#9 /library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_Style->actionStylePropertiesSave()
#10 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /admin.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(75) "/admin.php?styles/basic-blue.1/style-properties/save"
  ["_GET"] => array(1) {
    ["styles/basic-blue_1/style-properties/save"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["set"] => array(3) {
      ["imagePath"] => string(1) "1"
      ["animationSpeedMultiplier"] => string(1) "1"
      ["fbColorScheme"] => string(1) "1"
    }
    ["checkboxes"] => array(2) {
      [0] => string(5) "48292"
      [1] => string(5) "48370"
    }
    ["group"] => string(7) "general"
    ["_xfToken"] => string(8) "********"
    ["tab_index"] => string(1) "0"
    ["tab_id"] => string(0) ""
    ["_xfStylePropertiesData"] => string(16309)
It looks like you do not have any cache or specifically a Redis Cache setup in your config properly. I'll update the addon the better report that.
 
Last edited:
Is this config:

maxmemory 256mb
maxmemory-policy allkeys-lru

Needed to be added on redis.conf?
That is an important tuning operation.

However, you likely only need a maxmemory of 64mb or even 32mb, unless you have a lot of styles & languages.

DO has ready made script for WP:
https://assets.digitalocean.com/articles/wordpress_redis/object-cache.php
Does this addon implement the same already?
That is effectively what this addon does.
 
Xon updated Zend Redis Cache with a new update entry:

Feature update release

Implement caching of thread counts in a forum.
Adds the following options under "Performance"
performance_options-png.113916


This really only makes a difference for very large boards.

Read the rest of this update entry...
 
Last edited:
Can this be used in conjunction with a memcache(d) backend. So does this provide another backend for caching, or does it cache different things so they can be used together? Any performance improvement data as well?
 
It just gets used in-place of memcached. Same data, different backend.

I haven't personally tested this Redis implementation, but generally memcache and redis are about the same speed for the same operations if you're running them on a single box. I don't know how it differs if you run a distributed system--depends on your setup.

Generally Redis is preferred these days because it has built-in support for a bunch of handy datatypes such as lists, queues, etc so it's faster to develop against.
 
Last edited:
Can this be used in conjunction with a memcache(d) backend. So does this provide another backend for caching, or does it cache different things so they can be used together? Any performance improvement data as well?
It is a replacement for using memcache(d) backend. Both are approximately the same performance for the get/set operations, but the available functionality is different.

Memcache basically boils down to get/set, where as Redis has a rich feature set of how stored data can be manipulated.
 
I have this addon installed: https://xenforo.com/community/resources/bd-cache.2763/
and put Full Page caching to Memcache right now.
Does it still work with your addon?
Thanks!
Do you have nginx talking directly to Memcache? Or is it bd cache using the standard XF caching system.

If it is the first (nginx + memcache), then this add-on will add another component to your system (redis + memcache) unless you can update your ngixn config to use redis instead (not sure).

Otherwise, it should be a drop-in-replacement and bd cache should not notice the difference.
 
Top Bottom