Skip to content

[ 🐛 Bug ] After delete a file is not deleted from global cache #16

@mishaszu

Description

@mishaszu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions