Skip to content

[Docs] Document limitation of @Cacheable(sync=true) with Feign#1362

Merged
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
98001yash:docs/cache-sync-limitation
Apr 2, 2026
Merged

[Docs] Document limitation of @Cacheable(sync=true) with Feign#1362
ryanjbaxter merged 1 commit intospring-cloud:mainfrom
98001yash:docs/cache-sync-limitation

Conversation

@98001yash
Copy link
Copy Markdown
Contributor

This PR documents a limitation when using @Cacheable(sync = true) with Feign clients.

  • Explains the issue (recursive cache invocation)
  • Mentions resulting IllegalStateException
  • Provides workaround (disable sync or Feign caching)

Closes #659

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@98001yash
Copy link
Copy Markdown
Contributor Author

I investigated this issue and it appears to be caused by recursive cache invocation when using @Cacheable(sync = true) with Feign clients.

I've opened a PR to document this limitation and provide a workaround.

@ryanjbaxter ryanjbaxter merged commit 5e2bcc5 into spring-cloud:main Apr 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@Cacheable doesnt work with sync=true

3 participants