Skip to content

[FEATURE] Add --use-cache option and optimize cache handling for ReindexCommand#1991

Open
beatrycze-volk wants to merge 1 commit into
kitodo:mainfrom
beatrycze-volk:cache
Open

[FEATURE] Add --use-cache option and optimize cache handling for ReindexCommand#1991
beatrycze-volk wants to merge 1 commit into
kitodo:mainfrom
beatrycze-volk:cache

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Collaborator

Thanks to @jzmp for suggested changes.

The --use-cache option allows the reindex command to retrieve document data from the cache if available, potentially speeding up reindexing by avoiding redundant data loading.

Additionally, the cache clearing mechanism has been optimized. Instead of flushing the entire document cache for each reindexed item, only the specific document's cache entry is now removed. This prevents unnecessary invalidation of unrelated cache entries and improves performance during reindexing.

@beatrycze-volk beatrycze-volk self-assigned this Jun 5, 2026
@beatrycze-volk beatrycze-volk added the ↷ feature A new feature or enhancement. label Jun 5, 2026
…eindexCommand`

The `--use-cache` option allows the reindex command to retrieve document data from the cache if available, potentially speeding up reindexing by avoiding redundant data loading.

Additionally, the cache clearing mechanism has been optimized. Instead of flushing the entire document cache for each reindexed item, only the specific document's cache entry is now removed. This prevents unnecessary invalidation of unrelated cache entries and improves performance during reindexing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

↷ feature A new feature or enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant