gunicorn hosting works staticfiles rearranged

This commit is contained in:
xi-pinmping committed 2022-06-11 16:33:05 -04:00
1 parent 0e1a2681ea
commit ed147b3ec8
77784 files changed
+1381501

No files matched your search

@@ -0,0 +1,18 @@
'''Public utilities'''
from .cache import (
get_mangled_ignore as _get_mangled_ignore, make_cleanup_cache as _make_cleanup_cache)
__all__ = ['refresh', 'cleanup_ignore']
def refresh(instance):
'''Refresh the cache for an instance'''
return _make_cleanup_cache(instance)
def ignore(cls):
'''Mark a model to ignore for cleanup'''
setattr(cls, _get_mangled_ignore(cls), None)
return cls
cleanup_ignore = ignore