Redis Cache By Xon

xF2 Add-on Redis Cache By Xon 2.16.1

No permission to download
  • Remove empty options page
  • Fix pure-php Redis connector which breaks 'Redis View Counters' add-on for large numbers of threads to update.
  • Update test suit & misc bugfixes to redis connector (pure-php & phpredis wrapper)
  • Fix forum prefix filtering not working
  • Compatibility update for XF 2.0 RC2
  • Fix sending HTML emails due to malformed CSS.
  • Allow LZ4 compression to be numerical rather than true/false, recommend value is between 4-6.
  • Added an icon.
  • Major update to redis library fixing a number of inconsistencies between pure php & 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:
  • In php 7.x, with the php extension, pub/sub subscribing can cause memory corruption.
    • 3.1.4RC3 is known to fix this.
  • Addigbinary support, and default to it.
    • Will require clearing the redis cache. ie
      Code:
      redis-cli flushall
  • Fix "Must pass valid resource"
  • Like
Reactions: Olki
  • Support storinggz'ed encoded data raw in Redis and passing that to the client rather than decompression & recompression inphp.
    • If the client doesn't support gz'ed data, it is decompressed and sent.
  • Workaround XF2.0 Beta 1 bug which disable any sort of caching for CSS
    • Css generation to be cache is independent of sending the flags to the browser indicating css can be cached.
Revert using json encoding due to binary data in strings which causes encoding issues
Features:
  • Port Forum thread count caching from XF1 -> XF2 version of the add-on
Bugfixes:
  • v1.x.y is XF1, so bump to v2.x.y
  • Track latest credis
  • Cleanup of phpdocs and random typing issues
  • Workaround for Forum statistics always regenerating due to binary data being stored in a string (json_encode doesn't like this).