Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElementProxy presence checks should invalidate cache #125

Closed
dtognazzini opened this issue May 27, 2015 · 1 comment
Closed

ElementProxy presence checks should invalidate cache #125

dtognazzini opened this issue May 27, 2015 · 1 comment

Comments

@dtognazzini
Copy link
Contributor

See #123 (comment) for discussion.

When checking for presence, the DOM is not queried if the element was cached due to a previous lookup:

@loaded_element ||= load_element

Since #65, this is not true for absence checks. With absence checks, the cached element is ignored and the DOM is queried:

Both types of checks should invalidate the cache by looking up the element in the DOM.

@dtognazzini dtognazzini added this to the 1.X milestone May 27, 2015
@dtognazzini dtognazzini changed the title ElementProxy presence checks should invalidate cache ElementProxy presence checks should invalidate cache May 27, 2015
dtognazzini added a commit that referenced this issue Apr 28, 2016
Update Changelog for 1.5.0 listing #125
@dtognazzini
Copy link
Contributor Author

master: #158
10stable: #160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant