Drop archives.json update period from 4 to 2 days.

This commit is contained in:
Mayhem 2013-08-12 17:30:00 +02:00
parent 6d36518ea9
commit 88b6f97fce

View File

@ -31,7 +31,7 @@ Redirect =
now = Date.now()
# Update the list of archives every 4 days.
# The list is also updated when 4chan X gets updated.
return if lastarchivecheck > now - 4 * $.DAY
return if lastarchivecheck > now - 2 * $.DAY
$.ajax '<%= meta.page %>json/archives.json', onload: ->
return unless @status is 200
Conf['archives'] = JSON.parse @response