ChillFish8/lust

[ ๐Ÿ› Bug ] After delete a file is not deleted from global cache

mishaszu opened this issue ยท 0 comments

Describe the bug
After deleting an image it's possible to get a variant kept in cache. If files are removed manually (tested on filesystem storage type) and a user tries to get an image that was deleted and previously was kept in cache new file is created (as I assume from cache ).
If the global cache option is disabled or the bucket cache is used instead of the global the problem doesn't occur.

To Reproduce
Steps to reproduce the behavior:

  1. set Lust running instance
  2. creating an image
  3. getting the image
  4. deleting the image
  5. getting the image again (it's returned & created)
  6. deleting the image manually
  7. getting the image again (it's returned & created)

Expected behavior

  • Deleting image shouldn't be available with get endpoint
  • most importantly it shouldn't create a new instance of an image if it was deleted

Versioning (please complete the following information):

  • Lust Version = master
  • OS = ubuntu 20.04
  • Rustc Version = 1.70