Skip to content

Avoid hitting up on redis for robots/excluded users. - #544

Merged
andrehjr merged 1 commit into
masterfrom
exclude-visitor-before-loading-experiment
Apr 3, 2019
Merged

Avoid hitting up on redis for robots/excluded users.#544
andrehjr merged 1 commit into
masterfrom
exclude-visitor-before-loading-experiment

Conversation

@andrehjr

Copy link
Copy Markdown
Member

Closes #482

When Split is disabled or user is excluded, we avoid hitting redis up to load/save the experiment.

This should save a few calls if the a/b is exposed on a public page, or something.

The helper still follows up the logic of building an Split::Experiment to correctly return the control alternative.

Note that on this moment ExperimentCatalog.find_or_initialize does actually hit redis to 'find' an existing experiment.

@murara murara left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@andrehjr
andrehjr force-pushed the exclude-visitor-before-loading-experiment branch from 1a6d3f5 to 7f0bf4c Compare April 3, 2019 16:22
@andrehjr
andrehjr merged commit ad1fea9 into master Apr 3, 2019
@andrehjr
andrehjr deleted the exclude-visitor-before-loading-experiment branch April 3, 2019 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants