|
logger = logging.getLogger('cache')
|
|
size_of_double = len(struct.pack('d', 0))
|
|
string_type = type('')
|
|
CACHE = getattr(settings, 'WEBGATEWAY_CACHE', None)
|
|
TMPROOT = getattr(settings, 'WEBGATEWAY_TMPROOT', None)
|
|
THUMB_CACHE_TIME = 3600
|
|
THUMB_CACHE_SIZE = 20* 1024
|
|
IMG_CACHE_TIME = 3600
|
|
IMG_CACHE_SIZE = 512* 1024
|
|
JSON_CACHE_TIME = 3600
|
|
JSON_CACHE_SIZE = 1* 1024
|
|
TMPDIR_TIME = 3600* 12
|
|
FN_REGEX = re.compile('[#$,|]')
|
|
webgateway_cache = WebGatewayCache(FileCache)
|
|
webgateway_tempfile = WebGatewayTempFile()
|