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

Add cache eviction URL #733

Merged
merged 1 commit into from Mar 7, 2017
Merged

Add cache eviction URL #733

merged 1 commit into from Mar 7, 2017

Conversation

apmasell
Copy link
Contributor

@apmasell apmasell commented Mar 3, 2017

Add an URL to evict the contents of the Hibernate cache (since the existing cache eviction logic was removed when EHCache died).


@Controller
@RequestMapping("/rest/admin")
public class AdminRestContoller extends DefaultRestController {
Copy link
Contributor

@callunity callunity Mar 3, 2017

Choose a reason for hiding this comment

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

AdminRestController :neckbeard:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need spell check.

cache.evictNaturalIdRegions();
cache.evictQueryRegions();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you return something to show if the eviction was successful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. It returns a Boolean.

@frankie13
Copy link
Contributor

looks good - would you mind adding some details to the PR description please?

@apmasell
Copy link
Contributor Author

apmasell commented Mar 6, 2017

Updated.

@apmasell apmasell merged commit 2a6a0f4 into miso-lims:develop Mar 7, 2017
@apmasell apmasell deleted the cache_reset branch March 7, 2017 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants