mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #51] [MERGED] More intelligent caching layer #79
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/51
Author: @Glitchy-Sheep
Created: 8/1/2025
Status: ✅ Merged
Merged: 8/1/2025
Merged by: @Glitchy-Sheep
Base:
dev← Head:feat/better-cache-layer📝 Commits (10+)
f39cc73feat: 📝 Update Makefile: add analysis target + utf-8 support to use pipe-like cmdsb9002e3feat: ✨ Intelligent caching, refactorf8fd30erefactor: 🎨 Format the codee348e74refactor: ♻️ Remove old comments6a2f84aFix typo6ae33d1Better doc comment922d562refactor: ✏️ Fix var name typo703edc9Merge branch 'feat/better-cache-layer' of github.com:Glitchy-Sheep/boosty-downloader into feat/better-cache-layer6069d45Add doc string to the post cache save methodeb1eb92refactor: ♻️ More specific imports📊 Changes
11 files changed (+465 additions, -149 deletions)
View changed files
📝
Makefile(+21 -7)📝
boosty_downloader/main.py(+29 -10)➖
boosty_downloader/src/caching/post_cache.py(+0 -104)📝
boosty_downloader/src/download_manager/download_manager.py(+13 -19)📝
boosty_downloader/src/download_manager/download_manager_config.py(+2 -2)📝
boosty_downloader/src/download_manager/storage/__init__.py(+0 -0)➕
boosty_downloader/src/download_manager/storage/post_cache.py(+230 -0)📝
boosty_downloader/src/loggers/base.py(+1 -4)📝
boosty_downloader/src/loggers/logger_instances.py(+2 -2)📝
poetry.lock(+166 -1)📝
pyproject.toml(+1 -0)📄 Description
📌 More intelligent caching layer
📝 Description
Before this change:
This led to undesirable behavior — if the user later tried to download content using filters that hadn't been applied before, the post would still be skipped as cached.
After this change:
updated_atfields to ensure that even previously downloaded content is still up-to-date.🔄 Changelog
✅ Checklist
make testand your own judgment)make lint && make format)⚠ Notes
Because this change adds db fields - this update will increase major version.
For this reason I also added db-exceptions check to make sure user is aware of what's going on.
I would like to add some migrations, but since they're really dynamic (cache can appear anywhere in the system), it's harder than usual.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.