- π¬π§United Kingdom kenorb
As per #26 comment, "if (!$redisDatabaseIndex" won't work, as it's ignoring "0", change it to "!isset($redisDatabaseIndex)" instead.
- πͺπΈSpain Carlos Romero
Carlos Romero β made their first commit to this issueβs fork.
- Merge request !21Issue #2765895: Currently Drush Cr or Cache Clear UI does not flush Redis cache β (Open) created by Carlos Romero
- πͺπΈSpain Carlos Romero
Hello, I have made a fork and uploaded a commit with the code from DamienMcKenna comment #16 π Currently Drush Cr or Cache Clear UI does not flush Redis cache Fixed , I have modified the first condition, replacing !$redisDatabaseIndex with "!isset($redisDatabaseIndex)" as kenorb commented #33 π Currently Drush Cr or Cache Clear UI does not flush Redis cache Fixed .
For me, in a drupal 9 with the latest version of dockerhub of redis, clearing caches works using
$settings['redis.connection']['base'] = 0;
and
$settings['cache_prefix'] = 'mysite_';Tested running DBSIZE on redis-cli after and before do drush cr on drupal terminal.
I have made the merge request.
Thanks.
- π³π±Netherlands Johan den Hollander
Just tested with #16 patch and MR #21.
With 16 the Redis cache is not flushed. While with the MR it works correctly. - First commit to issue fork.