Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
SiB Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Startin blox
  • framework
  • SiB Core
  • Issues
  • #573

Closed
Open
Opened Jan 22, 2020 by Matthieu Fesselier@matthieu
  • Report abuse
Report abuse

Empty cache issue with children

Today, when we cache a resource, we also cache every children or nested resource we find in the current graph. For example:

inbox 
  notification-1
    object-1
  notification-2
    object-1

If we GET inbox -> we cache inbox, notification-1, object-1 and notification-2.

When we clear the cache, it clears only the requested container/resource. Let's say we want to clear the inbox cache, we then have

inbox             CLEARED
  notification-1  NOT CLEARED
    object-1      NOT CLEARED
  notification-2  NOT CLEARED
    object-1      NOT CLEARED

Are we supposed to loop over the graph when we clear the cache to also clear all the nested objects? Or should we just override the cache with the new datas? And then, how do we know when to do so?

Any idea @sylvain @balessan @clement ?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
BUG
Assign labels
  • View project labels
Reference: startinblox/framework/sib-core#573