Skip to content

Commit cd624c2

Browse files
committed
fix: questionnaire metadata cache eviction
1 parent 8b6adfb commit cd624c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 1.9.1 [TODO]
3+
### Fixed
4+
- Cache eviction not working when delete questionnaire metadata
5+
26
## 1.9.0 [2025-10-09]
37
### Added
48
- Authorizations for scheduled Perret calls

src/main/java/fr/insee/genesis/infrastructure/adapter/QuestionnaireMetadataMongoAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void save(QuestionnaireMetadataModel questionnaireMetadataModel) {
3939
}
4040

4141
@Override
42-
@CacheEvict(value = "metadatas")
42+
@CacheEvict(value = "metadatas", key = "#questionnaireId + '-' + #mode")
4343
public void remove(String questionnaireId, Mode mode) {
4444
questionnaireMetadataMongoDBRepository.deleteByQuestionnaireIdAndMode(questionnaireId, mode);
4545
}

0 commit comments

Comments
 (0)