New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the --gc purger #5439

Closed
bep opened this Issue Nov 13, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@bep
Member

bep commented Nov 13, 2018

Now that we have all the file caching in one place, this can be made much simpler:

  1. Add an id collector of sorts
  2. On cache.GC, remove all expired and entries that is not in 1)

@bep bep added the Enhancement label Nov 13, 2018

@bep bep added this to the v0.52 milestone Nov 13, 2018

@bep bep self-assigned this Nov 13, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

bep added a commit to bep/hugo that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See gohugoio#5439

@bep bep closed this in 3c29c5a Nov 14, 2018

bep added a commit that referenced this issue Nov 14, 2018

cache/filecache: Add a :project placeholder
This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See #5439
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment