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?
to your account
George Georgovassilis opened SPR-17024 and commented
Cacheable(condition) is evaluated twice for every invocation on the proxied object. For a failing test see https://github.com/ggeorgovassilis/spring-cache-double-condition-evaluation/tree/master
This is a potential performance bottleneck as conditions may delegate to objects which query a database or perform costly cryptographic operations.
Reference URL: https://github.com/ggeorgovassilis/spring-cache-double-condition-evaluation/tree/master
Referenced from: commits faef363
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
Good point! We're caching the evaluation result per cache operation now.
Sorry, something went wrong.
No branches or pull requests