Skip to content

Automatically reset goldy cache after a certain period. #118

@THEGOLDENPRO

Description

@THEGOLDENPRO

In goldy bot pancake #113 the framework now caches a multitude of data including, goldy bot repo data and application data.

image

At the moment cache is pretty much persistent, it doesn't get cleared unless you pass --no-cache to the start command or just delete the file.

This is a problem for data such as repository data, like if a new extension gets added to the repo, goldy bot will not pull it as it's reading outdated cache. So it's clear we need to implement some type of expiring date system in the cache object like so:

{
    "repo_data": {
        "data": {
            ...
        },
        "expires": "1708378072"
    },
    ...
}

Not final design, changes will be made.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions