Skip to content
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 interface button to clear image list cache #159

Closed
dersmon opened this issue Jun 21, 2023 · 2 comments
Closed

Add interface button to clear image list cache #159

dersmon opened this issue Jun 21, 2023 · 2 comments
Assignees
Labels
beginner (Hopefully) beginner friendly issue elixir Tickets concerning Elixir Code, https://elixir-lang.org/ field_hub Issue concerning the Hub server

Comments

@dersmon
Copy link
Member

dersmon commented Jun 21, 2023

The application caches an index of files and their size for each project to avoid unnecessary file system lookups. This cache by default is retained for 24h or until a new file gets added or an existing one deleted.

The addition/deletion deletes the cached file index, which will be recreated the next time someone asks for the index.

Currently there is no way for administrators to trigger the deletion through the web interface directly, which should be a possibility for certain edge cases: If files were added directly server side on file system level instead of through the application.

There already exists a helper function to clear the cache (currently declared as private), see https://github.com/dainst/idai-field/blob/master/server/lib/field_hub/file_store.ex#L323-L325

@dersmon dersmon added field_hub Issue concerning the Hub server beginner (Hopefully) beginner friendly issue elixir Tickets concerning Elixir Code, https://elixir-lang.org/ labels Jun 21, 2023
@dersmon
Copy link
Member Author

dersmon commented Dec 20, 2023

#189

1 similar comment
@the-last-pastafarian
Copy link
Contributor

#189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner (Hopefully) beginner friendly issue elixir Tickets concerning Elixir Code, https://elixir-lang.org/ field_hub Issue concerning the Hub server
Projects
None yet
Development

No branches or pull requests

2 participants