Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (38 sloc) 0.718 kb
2dc47d4 Initial build
jason authored
1 import logging
2
3 inf = logging.info
4 war = logging.warning
5 err = logging.error
6 cri = logging.critical
7
a06c215 @jasoncartwright Decrease SHARDS_PER_COUNTER for recount speed
jasoncartwright authored
8 SHARDS_PER_COUNTER = 10
30f4b20 Turns out you can't delete more than 500 entities at once
jason authored
9 MC_CACHE_TIME = 2419200 #seconds (28 days)
2e19817 @jasoncartwright reduce DS cache time
jasoncartwright authored
10 DS_CACHE_TIME = 90 #days
1c5e91a Ability to run 'headless' without index and test page
jason authored
11
5a59cc9 Improved icon validation & test page
jason authored
12 MIN_ICON_LENGTH = 100
13 MAX_ICON_LENGTH = 20000
14 EMPTY_ICON_LENGTH = 1150
15
16 ICON_MIMETYPES = [
17 "image/x-icon",
18 "image/vnd.microsoft.icon",
19 "image/ico",
20 "image/icon",
21 "text/ico",
22 "application/ico",
23 "image/x-ms-bmp",
24 "image/x-bmp",
25 "image/gif",
26 "image/png",
27 "image/jpeg",
28 None,
29 ]
30
31 ICON_MIMETYPE_BLACKLIST = [
32 "application/xml",
33 "text/html",
34 ]
35
1c5e91a Ability to run 'headless' without index and test page
jason authored
36 # Surpresses the index and test pages
735f1b3 ~40% performance improvement using MC for counters (backed up to the …
jason authored
37 HEADLESS = False
38
39 COUNTERS = [
40 "favIconsServed",
41 "favIconsServedDefault",
42 "cacheNone",
43 "cacheMC",
44 "cacheDS",
45 ]
Something went wrong with that request. Please try again.