canmove, Confirmed users
1,173
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
# if total > low_threshold and timestamp is older than 1h - refetch total from db and reset total and timestamp in memcache | # if total > low_threshold and timestamp is older than 1h - refetch total from db and reset total and timestamp in memcache | ||
# if total > quota, reject write | # if total > quota, reject write | ||
# add sum of incoming payloads to quota | # add sum of incoming payloads to quota | ||
# if total > low_threshold, add an X-Weave header | # if total > low_threshold, add an X-Weave header | ||
On a delete | On a delete | ||
# delete user quota record from memcache | # delete user quota record from memcache | ||