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

Invalidate typeahead cache #1119

Closed
kardan opened this issue Feb 18, 2015 · 1 comment
Closed

Invalidate typeahead cache #1119

kardan opened this issue Feb 18, 2015 · 1 comment
Assignees

Comments

@kardan
Copy link
Contributor

kardan commented Feb 18, 2015

Right now typeahead data (project title, org names...) are cached in the browsers local storage. Since some parts of our UI depends on the typeahead we need to make sure to invalidate the cache when new data exist. This to prevent things like not being able to connect to new organisation in my_rsr since the organisation is newer than the cached data.

@kardan kardan self-assigned this Feb 18, 2015
kardan added a commit that referenced this issue Feb 19, 2015
- New resources for typeaheads that are public for non authenticated
  users.
- Added simple cache invalidation (based on count() on Objects).
@kardan
Copy link
Contributor Author

kardan commented Feb 19, 2015

Added a crude cache invalidation rule. If a new item have been added to the collection we ask for new data. Beside this rule there is also a ttl config that we can play with. The will eliminate the issue in My RSR where a user should add an orgs using the typeahead when having stale cache of organisation in local storage. It does however not make updates to things like project title or organisation names invalidate the cache.

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

No branches or pull requests

2 participants