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
Conversation
|
||
@Controller | ||
@RequestMapping("/rest/admin") | ||
public class AdminRestContoller extends DefaultRestController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdminRestController
There was a problem hiding this comment.
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(); | ||
} | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
looks good - would you mind adding some details to the PR description please? |
Updated. |
Add an URL to evict the contents of the Hibernate cache (since the existing cache eviction logic was removed when EHCache died).