xF1 Add-on - Zend Redis Cache - Updates | NulledTeam UnderGround | The Best Scripts Site In The World
Resource icon

xF1 Add-on Zend Redis Cache 1.6.0

No permission to download
  • Support zstd compression
  • New retry_reads_on_master option, when a read to the slave-redis instance fails (ie due to the redis instance still loading data), reads will fail-back to the master instance.
  • Confirm php 7.3 compatibility for pure-php redis connector
  • Compat bugfix for phpredis-v3 for exists() function. phpredis-v3 returns a bool, credis/phpredis-v4 return an int, this ensures all backend redis connectors return the same type for the exists function.
If decompression of fetched content fails, just fail the cache get request. This should be a safe trade-off as if the key returns nothing XF stack should regenerate it.
  • Makes changing compression type a cache flush rather than rendering the site useless until Redis is manually flushed.
  • Update redis stats display to match other stats UI theming
  • Display redis slave stats
    • Ability to drill down to each slave's stats
  • Like
Reactions: officialgirl
  • Support XF1.5.16 'Only trigger the CSS cache for "good" requests to reduce the chance of the cache ballooning.'
    • For older versions of XF, the template list is sorted. But invalid templates are not detected.
Track upstream components:
  • Prevent option compress_threshold < 1 to avoid errors compressing empty strings
  • Support LZ4 "high compression" as a integer (recomment a value of 4-6 for compress_data)
  • Support for using ElastiCache Cluster replica nodes for reads. See For details.
  • Major update toredis library fixing a number of inconsistencies between purephp &php-extension modes.
    • This is not a breaking change for my redis add-ons.
    • All unit tests should pass
    • For custom code, the following redis commands have breaking changes:
      • pipeline/multi/exec fixes
        • Impacts; hmget/hgetall/info/ttl/scan/sscan/hscan/zscan/zrangebyscore/zrevrangebyscore/zrange/zrevrange
      • zrange/zrevrange in php extension mode now works.
      • hmget now returns consistent data format for all combinations of; normal/pipeline/multi with pure-php/extension.
      • Errors from Redis are now prefixed with "ERR " in both pure-php like from the php extension.
      • Improved logic around closing the connection to Redis (should make persistent mode stable)
Known issue:
  • Inphp 7.x, with thephp extension, pub/sub subscribing can cause memory corruption.
    • 3.1.4RC3 is known to fix this.
  1. Sync with latest upstream redis php bindings
  2. By default the Zend Cache "tags" support is disabled as XenForo does not use it and it introduces additional write operations for every cache entry or session to support it.

    To enable;
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
Update backend redis connector library.
  • Bugfix pure php connector, only impacts custom add-ons directly calling the redis library.
  • load_from_slaves option can now be 2 to include the master in the list of read-only instances to connect to.
  • Like
Reactions: Wizi
This update synchronizes with the Credis and Cm_Cache_Backend_Redis library's upstream, which results in several breaking changes in configuration.

This is a breaking change if you use sentinel support

The following configuration keys have been renamed:
  • sentinel_master_set renamed to sentinel_master
  • slave-select renamed to slave_select_callable
  • sentinel_persistent renamed to sentinel, which is now an arrary; ie array('persistent' => true)
A new option has been introduced:
  • sentinel_master_verify
    • Checks the redis master is actually a master, not required if you are loading from a slave or can accept errors when the master redis instance falls over.
  • The sentinel option supports the followingarguments, if the option doesn't exist falls back to the parent option in 'backendOptions':
    • persistent
    • connect_retries
    • read_timeout
    • timeout

Example of changes in configuration:

Previous configuration:
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
New configuration:
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
  • Option "slave-select" can now be a closure or a string. Default is "preferLocalSlave".
    • String options:
      • preferLocalSlave - fetches IP's via a shell exec
      • preferLocalSlaveLocalDisk - fetches IP's via a shell exec, but caches to /tmp/local_ips
      • preferLocalSlaveAPCu - fetches IP's via a shell exec, but caches to APCu
  • New option 'sentinel_persistent' (true/false, uses 'persistent' option if 'sentinel_persistent' is null or does not exists)
    • Allow separate persistent connections options for sentinel and for master/slaves.

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock