Hi all,

Redis is great!
but after lot of debugging and experiments on a multistep form that was giving random errors, we realised that it was the redis server resetting the cache to fast. We found this in this http://dropbucket.org/node/242 comment.
I think it should be added in the redis documentation as the form are part of Drupal core to save hours of debug to other developers.

My solution (I don't know if it is the best one) is to move the cache_form out from the Redis server:

$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

and use the module https://www.drupal.org/project/safe_cache_form_clear

Comments

denix created an issue.

memtkmcc’s picture

denix’s picture

Yes, it has been discussed in the past, but it is still not mentioned in the documentation and the default is to normally flush cache_form :(

pounard’s picture

Actually, at some point in time, it was, but now it's not anymore because I considered it as being safe to write forms into Redis, as long as this bin is not marked as volatile.

@denix could you provide more details about your setup so that I could potentially fix the module if there's anything to fix ?

denix’s picture

Salut @pounard,

if you want I can give you more details in some chat, what do you prefer?

pounard’s picture

@denix are you on IRC (freenode) ? If so, you can try to join me: /query pounard