michaelpb / michaelpb/omnic

Time-based cache grouping

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
ConversionGrid enhancement Production
Dominant language
Python
Stars
16
Forks
1
PR merge metrics
No merged PRs in 30d

Description

- [ ] Time-based grouper: In addition to MD5 structure, have
`/var/tmp/omnic/date-cache/2017/08/01/ae08/`. This will allow cron to
aggressively purge older cache, e.g. only maintain a couple days in prod.
This is good because IRL it won't be serving media anyway, the cache is only
good for conversion.

- [X] 'clearcache' command - delete a single foreign resource from cache,
removing all generated media from that foreign resource.
- [ ] Also support date-range (requires grouping)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the cache implementation and the existing clearcache command in the repository. Add time-based grouping alongside the MD5 structure, then support removing cached media by date range and verify that older date-grouped cache entries can be purged as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.