diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index dc56909..0ac440f 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1376 \ No newline at end of file +1378 \ No newline at end of file diff --git a/Common/dataobjects/Session.cs b/Common/dataobjects/Session.cs index bca9fae..dd9de09 100644 --- a/Common/dataobjects/Session.cs +++ b/Common/dataobjects/Session.cs @@ -122,12 +122,14 @@ namespace FLocal.Common.dataobjects { } public void updateLastActivity(string lastUrl) { - if(DateTime.Now.Subtract(this.lastActivity).TotalSeconds < 10) return; //to partially remove db load if(lastUrl != null) { string _url = lastUrl.ToLower(); if(_url.StartsWith("/upload/item")) return; if(_url.StartsWith("/static")) return; if(_url.StartsWith("/favicon.ico")) return; + if(DateTime.Now.Subtract(this.lastHumanActivity).TotalSeconds < 10) return; //to partially remove db load + } else { + if(DateTime.Now.Subtract(this.lastActivity).TotalSeconds < 10) return; //to partially remove db load } try { Dictionary dataToUpdate = new Dictionary();