blomstra / flarum-redis

Redis cache and queue for @flarum
MIT License
15 stars 3 forks source link

Cache clean problem #8

Open flarumtr opened 3 years ago

flarumtr commented 3 years ago

When the flarum redis plugin is updated from v0.2.0 to v0.2.2, the php flarum cache: clear command gives an error like in redis.

https://i.imgur.com/Blt4cEBl.jpg

Server: Ubuntu 18.04 redis-cli 4.0.9

Flarum core 0.1.0-beta.15
PHP version: 7.4.14
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl,                                                                                    Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype,                                                                                    curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap                                                                                   , intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML,                                                                                    soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwrite                                                                                   r, xsl, zip, Zend OPcache
+---------------------------------+------------------+--------+
| Flarum Extensions               |                  |        |
+---------------------------------+------------------+--------+
| ID                              | Version          | Commit |
+---------------------------------+------------------+--------+
| flarum-flags                    | v0.1.0-beta.15   |        |
| flarum-bbcode                   | v0.1.0-beta.15   |        |
| flarum-approval                 | v0.1.0-beta.15   |        |
| flarum-emoji                    | v0.1.0-beta.15   |        |
| flarum-lock                     | v0.1.0-beta.15   |        |
| flarum-markdown                 | v0.1.0-beta.15   |        |
| flarum-mentions                 | v0.1.0-beta.15   |        |
| flarum-sticky                   | v0.1.0-beta.15.1 |        |
| flarum-subscriptions            | v0.1.0-beta.15   |        |
| flarum-suspend                  | v0.1.0-beta.15   |        |
| flarum-tags                     | v0.1.0-beta.15   |        |
| v17development-blog             | v0.2.1           |        |
| tolgaaaltas-turkish             | 0.15.0.4         |        |
| fof-oauth                       | 0.2.0            |        |
| clarkwinkelmann-circle-groups   | 0.2.3            |        |
| nearata-copy-code-to-clipboard  | v1.1.0           |        |
| fof-follow-tags                 | 0.6.4            |        |
| fof-best-answer                 | 0.3.5            |        |
| fof-subscribed                  | 0.4.1            |        |
| fof-merge-discussions           | 0.5.1            |        |
| fof-split                       | 0.6.0            |        |
| fof-links                       | 0.5.2            |        |
| fof-nightmode                   | 0.7.1            |        |
| fof-pages                       | 0.6.0            |        |
| fof-sitemap                     | 0.6.0            |        |
| fof-upload                      | 0.12.9           |        |
| fof-user-bio                    | 0.4.2            |        |
| fof-username-request            | 0.4.0            |        |
| ianm-follow-users               | 0.1.2            |        |
| askvortsov-moderator-warnings   | v0.4.0           |        |
| v17development-seo              | 1.5.1            |        |
| fof-formatting                  | 0.3.1            |        |
| askvortsov-categories           | v2.0.0           |        |
| fof-user-directory              | 0.5.0            |        |
| tolgaaaltas-lang-turkish        | 0.15.0.4         |        |
| ianm-html-head                  | 0.1.1            |        |
| clarkwinkelmann-group-list      | 0.2.0            |        |
| flarum-likes                    | v0.1.0-beta.15   |        |
| zerosonesfun-elint              | 3.0.3            |        |
| clarkwinkelmann-mailing         | 0.4.0            |        |
| askvortsov-discussion-templates | v0.3.0           |        |
| fof-analytics                   | 0.11.0           |        |
| fof-share-social                | 0.3.0            |        |
| askvortsov-pwa                  | v2.0.2           |        |
| fof-profile-image-crop          | 0.2.1            |        |
| sycho-profile-cover             | v1.2.3           |        |
| kyrne-websocket                 | 2.3.0            |        |
| bokt-cache-assets               | 0.3              |        |
| blomstra-redis                  | 0.2.0            |        |
+---------------------------------+------------------+--------+
luceos commented 3 years ago

Image no longer available, but it had something to do with FLUSHDB not being known? What redis version do you use?

ref: https://discuss.flarum.org/d/21873-redis-cache-queues/47

matteocontrini commented 3 years ago

@luceos I'm seeing the image correctly btw. Copying it here for future reference:

immagine

luceos commented 3 years ago

After some investigation it seems to relate to the fact that FLUSHDB might be a default blocked command, at least so it seems. Has either of you found anything related to this or did you simply stopped using this version? Please understand that the newer versions actually make redis the cache, past versions simply still used files ;)