From d364f072fb63d5a38971b8b91876ba9a88546c8a Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 4 Jun 2025 21:51:33 +0200 Subject: [PATCH] Update .gitignore to properly track cache manager code and ignore runtime cache --- .gitignore | 8 ++++++-- ETF_Portal/ETF_Portal/cache/__init__.py | 0 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 ETF_Portal/ETF_Portal/cache/__init__.py diff --git a/.gitignore b/.gitignore index 81711ff..94ecffa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,13 @@ .env #.env.* -# Cache directories +# Ignore all runtime cache data (created at runtime, not code) cache/ -**/cache/ + +# But DO track the cache manager Python code in the package +!ETF_Portal/ETF_Portal/cache/*.py +!ETF_Portal/ETF_Portal/cache/__init__.py + # Python __pycache__/ diff --git a/ETF_Portal/ETF_Portal/cache/__init__.py b/ETF_Portal/ETF_Portal/cache/__init__.py new file mode 100644 index 0000000..e69de29