Some caching fixes
This commit is contained in:
parent
3eeaf7fbb2
commit
3b6f024dca
@ -11,7 +11,7 @@
|
|||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
const CACHE_VERSION = { 'version': '0.0.893' };
|
const CACHE_VERSION = { 'version': '0.0.894' };
|
||||||
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
||||||
const RUNTIME = 'runtime';
|
const RUNTIME = 'runtime';
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ const LocationModel = Backbone.Model.extend({
|
|||||||
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
console.log(now.getTime(), now.getTime() - this.throttler);
|
console.log(now.getTime(), now.getTime() - this.throttler);
|
||||||
if (now.getTime() - this.throttler > 30000) {
|
if (now.getTime() - this.throttler > 120000) {
|
||||||
this.processPosition(location);
|
this.processPosition(location);
|
||||||
this.throttler = now.getTime() + 1000;
|
this.throttler = now.getTime() + 1000;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user