Describe the bug
ab_test triggers multiple Redis commands for all experiments for a single experiment ab_test(:experiment_1) call.
If in a single request flow I call ab_test(:experiment_1), ab_test(:experiment_2) and ab_test(:experiment_3) it will perform multiple commands for the same experiments overloading Redis.
To Reproduce
Open redis-cli monitor then:
A single call will perform get, hget, type, lrange etc for all other experiments defined in the experiments.yml.
Expected behavior
Redis calls only for the given experiment.
Describe the bug
ab_testtriggers multiple Redis commands for all experiments for a single experimentab_test(:experiment_1)call.If in a single request flow I call
ab_test(:experiment_1),ab_test(:experiment_2)andab_test(:experiment_3)it will perform multiple commands for the same experiments overloading Redis.To Reproduce
Open
redis-cli monitorthen:A single call will perform
get,hget,type,lrangeetc for all other experiments defined in theexperiments.yml.Expected behavior
Redis calls only for the given experiment.