mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-18 17:41:08 +00:00
Some documentation
This commit is contained in:
parent
1956e16b4b
commit
164a4e11fc
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,11 @@ from django.utils.importlib import import_module
|
||||||
|
|
||||||
|
|
||||||
class PessimisticCacheStateBackend(object):
|
class PessimisticCacheStateBackend(object):
|
||||||
|
"""
|
||||||
|
A very safe cache state backend. Guarantees that files will always be
|
||||||
|
available, but at the cost of hitting the storage backend.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
def is_invalid(self, file):
|
def is_invalid(self, file):
|
||||||
if not getattr(file, '_file', None):
|
if not getattr(file, '_file', None):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue