Skip to content
Myr

Added view caching specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent a4cbbe5 · Browse files · 2 files+20 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+20 added−6 removed

  • tests:+17 added−0 removed
  • other:+3 added−6 removed

2 files+20 added−6 removed

modified:lib/express/plugins/cache.js+3 added-6 removed
207 unmodified lines
208 * @api private209 */210 211 startReaper: function() {212 var self = this,213 oneDay = 86400000,214 oneHour = 3600000215 setInterval(function(){216 self.store.reap(self.lifetime || oneDay)217 }, self.reapInterval || self.reapEvery || oneHour)212 setInterval(function(self){213 self.store.reap(self.lifetime || (1).day)214 }, this.reapInterval || this.reapEvery || (1).hour, this)215 }216 }217})
modified:spec/spec.plugins.view.js+17 added