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

Issue with OpenMage and Lua script #180

Closed Tomasz-Silpion closed 7 months ago

Tomasz-Silpion commented 8 months ago
  1. Upgrade to colinmollenhour/cache-backend-redis 1.17.0 - dc2fd4fab8cb6b11e161f0eacdd5465c5b42b6f1
  2. Make sure that in app/etc/local.xml use_lua is set as 0
        <cache>
            <backend>Cm_Cache_Backend_Redis</backend>
            <backend_options>
                (...)
                <use_lua>0</use_lua> <!-- Set to 1 if Lua scripts should be used for some operations -->
            </backend_options>
        </cache>
  1. Go to the admin panel with cache enabled. Try to resave block.

Error cleaning cache by mode matchingAnyTag: ERR Error running script (call to f_39383dcf36d2e71364a666b2a806bc8219cd332d): @user_script:1: @user_script: 1: Unknown Redis command called from Lua script

Error appears. Block is not saved.

Somehow call to clean method is omitting proper constructor. Still not sure if it's an issue in my stack or general one.

Tomasz-Silpion commented 7 months ago

Sorry. The issue was caused by Lesti_Fpc configuration with lack of similar _uselua tag. Adding it there resolved my problem.