Skip to content

Re-validate the cache of allowed ids when creating a sample

Right now all the allowed sample ids that the logged-in user is authorized to see, gathered at the login process. so the newly created samples is not on that list. we need to:

  • Re-validate the cache or add the new sample ICAT ID to the cache (update the cache) (this is solve the issue for the creator user)
  • and decrees the cache lifetime to about 3–5 minutes (this will solve the issue for other users)
  • Re-validation of the cache or updating the allowed list needs to be done as background process, if it takes more time.