Giter Club home page Giter Club logo

Comments (7)

jiangwenyuan avatar jiangwenyuan commented on June 2, 2024 1

So can you give more details about stale caches cleanup process?

It is controlled by disk-cleaner, if the file is stale ON or within stale TIME, it will not be deleted.

from nuster.

jiangwenyuan avatar jiangwenyuan commented on June 2, 2024 1

It will be deleted if stale TIME is expired

from nuster.

jiangwenyuan avatar jiangwenyuan commented on June 2, 2024

Can we force the first request return stale cache when stale on?

Yes

and nuster send request to the backend server and update the cache at the same time.

Not yet, it's on the todo list..

btw, does the purge request mark the cache stale, and not directly deleting it? so nuster can still use the stale cache?

No, purge mark the cache invalid

from nuster.

everyx avatar everyx commented on June 2, 2024

Can we force the first request return stale cache when stale on?

Yes

How to do that? According to the comment in this issues, the first request will be always forwarded to the backend and response the return content then.

and nuster send request to the backend server and update the cache at the same time.

Not yet, it's on the todo list..

Great. exciting to wait this come true

btw, does the purge request mark the cache stale, and not directly deleting it? so nuster can still use the stale cache?

No, purge mark the cache invalid

Will cleaner clean up the stale caches immediately? Is there a plan to support mark cache's status to stale manually?

from nuster.

jiangwenyuan avatar jiangwenyuan commented on June 2, 2024

My bad..It's still on the local development branch..I haven't touched on this for a while:)

Will cleaner clean up the stale caches immediately?

No

Is there a plan to support mark cache's status to stale manually?

Not as of now..

from nuster.

everyx avatar everyx commented on June 2, 2024

My bad..It's still on the local development branch..I haven't touched on this for a while:)

hope it can be comming soon :)

Will cleaner clean up the stale caches immediately?

No

So can you give more details about stale caches cleanup process?

I want that the cache of stale will never be deleted until the memory / disk is about to exceeds the quota and running LRU cleanup then. So I can use cache as much as I can.

from nuster.

everyx avatar everyx commented on June 2, 2024

So can you give more details about stale caches cleanup process?

It is controlled by disk-cleaner, if the file is stale ON or within stale TIME, it will not be deleted.

So the stale cache will never be deleted and will only be updated by the new cache?

from nuster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.