Skip to content

[Bug/Feature Request] Cache for Log Spaces Should Update to Reflect Additions or Deletions #490

@wtt40122

Description

@wtt40122

Description

In the current system implementation, the list of log spaces is managed through caching to improve performance and reduce direct access to the database. However, we have identified an issue: when new log spaces are added or existing ones are deleted, the cache does not update in a timely manner to reflect these changes. This leads to the following problems:

  1. The user interface may display an inaccurate list of available log spaces because the cache includes spaces that have been deleted or excludes newly added spaces.
  2. Business logic that relies on the latest list of log spaces may produce incorrect results due to the use of outdated cached data.

Expected Behavior

We expect the system to:

  1. Automatically clear or update the cache when a new log space is added, ensuring that all subsequent requests can access the updated list of log spaces.
  2. Similarly, automatically clear or update the cache when a log space is deleted, avoiding the retention of information about spaces that have been removed.

Actual Behavior

Currently, the system does not update the cache promptly after adding or deleting log spaces, resulting in inconsistent data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions