comparison sat/core/constants.py @ 3188:a15773c6c273

memory(cache): extend EOL when a file metadata is retrieved
author Goffi <goffi@goffi.org>
date Wed, 26 Feb 2020 22:03:15 +0100
parents d92a144f3589
children adf1aeaa0d37
comparison
equal deleted inserted replaced
3187:d92a144f3589 3188:a15773c6c273
378 CONTEXT_CHAT = "CONTEXT_CHAT" 378 CONTEXT_CHAT = "CONTEXT_CHAT"
379 379
380 ## Misc ## 380 ## Misc ##
381 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" 381 SAVEFILE_DATABASE = APP_NAME_FILE + ".db"
382 IQ_SET = '/iq[@type="set"]' 382 IQ_SET = '/iq[@type="set"]'
383 # Prefix used for environment variables 383 ENV_PREFIX = "SAT_" # Prefix used for environment variables
384 ENV_PREFIX = "SAT_"
385 IGNORE = "ignore" 384 IGNORE = "ignore"
386 # used in bridge when a integer value is expected 385 NO_LIMIT = -1 # used in bridge when a integer value is expected
387 NO_LIMIT = -1 386 DEFAULT_MAX_AGE = 1209600 # default max age of cached files, in seconds
388 # default max age of cached files, in seconds
389 DEFAULT_MAX_AGE = 3600 * 24 * 14
390 HASH_SHA1_EMPTY = "da39a3ee5e6b4b0d3255bfef95601890afd80709" 387 HASH_SHA1_EMPTY = "da39a3ee5e6b4b0d3255bfef95601890afd80709"
391 STANZA_NAMES = ("iq", "message", "presence") 388 STANZA_NAMES = ("iq", "message", "presence")
392 389
393 # Stream Hooks 390 # Stream Hooks
394 STREAM_HOOK_SEND = "send" 391 STREAM_HOOK_SEND = "send"