Rev2059, Fix download test, boost priority on request by 15, Adjust default priorities
This commit is contained in:
parent
db744f576e
commit
f67cb7b145
4 changed files with 9 additions and 9 deletions
|
@ -391,16 +391,16 @@ class WorkerManager(object):
|
|||
if "-default" in inner_path:
|
||||
return -4 # Default files are cloning not important
|
||||
elif inner_path.endswith(".css"):
|
||||
return 17 # boost css files priority
|
||||
return 13 # boost css files priority
|
||||
elif inner_path.endswith(".js"):
|
||||
return 16 # boost js files priority
|
||||
return 12 # boost js files priority
|
||||
elif inner_path.endswith("dbschema.json"):
|
||||
return 15 # boost database specification
|
||||
return 11 # boost database specification
|
||||
elif inner_path.endswith("content.json"):
|
||||
return 1 # boost included content.json files priority a bit
|
||||
elif inner_path.endswith(".json"):
|
||||
if len(inner_path) < 50: # Boost non-user json files more
|
||||
return 14
|
||||
if len(inner_path) < 50: # Boost non-user json files
|
||||
return 10
|
||||
else:
|
||||
return 2
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue