django-cachebuster icon indicating copy to clipboard operation
django-cachebuster copied to clipboard

Git detector doesn't work after git gc

Open fisadev opened this issue 13 years ago • 1 comments

The git detector seems to be reading from .git/refs/heads/ , but this directory is cleaned up after running a git gc (the refs ar packed into .git/packed-refs)

fisadev avatar Nov 13 '12 22:11 fisadev

Juan, if you're using Django 1.4+ (and I sincerely hope you are), you should use Django's built-in caching mechanisms. While potentially not as efficient as this, Django's methodology scales across servers better, I believe.

Feel free to suggest a fix or better yet, submit a pull request to address this. I'd love to get options.

jaddison avatar Nov 13 '12 23:11 jaddison