mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 00:23:40 +02:00
increase jquery.geoip local cache duration
git-svn-id: http://piwigo.org/svn/trunk@28067 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -11,7 +11,7 @@ GeoIp = {
|
||||
cache = JSON.parse(cache);
|
||||
for (var key in cache) {
|
||||
var data = cache[key];
|
||||
if ( (new Date()).getTime() - data.reqTime > 36 * 3600000)
|
||||
if ( (new Date()).getTime() - data.reqTime > 96 * 3600000)
|
||||
delete cache[key];
|
||||
}
|
||||
GeoIp.cache = cache;
|
||||
|
||||
Reference in New Issue
Block a user