1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 16:45:07 +00:00

fix(clean): speed up Python bytecode cache cleanup

This commit is contained in:
tw93
2026-03-08 19:45:53 +08:00
parent 4df6c9c531
commit 24da1e2ac1
2 changed files with 22 additions and 1 deletions

View File

@@ -212,7 +212,9 @@ clean_project_caches() {
[[ -d "$cache_dir/cache" ]] && safe_clean "$cache_dir/cache"/* "Next.js build cache" || true
;;
"__pycache__")
[[ -d "$cache_dir" ]] && safe_clean "$cache_dir"/* "Python bytecode cache" || true
# Remove the cache directory itself so we avoid expanding every
# .pyc file into a separate safe_clean target.
[[ -d "$cache_dir" ]] && safe_clean "$cache_dir" "Python bytecode cache" || true
;;
".dart_tool")
if [[ -d "$cache_dir" ]]; then