Skip to content
Myr

Fixed cache bugs introduced by 1bc9a1a

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

authored by visionmedia · committed by visionmedia · parent 1bc9a1a · Browse files · 1 file+4 added−4 removed
This commit

State

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

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:lib/express/plugins/cache.js+4 added-4 removed
129 unmodified lines
130 keys = Object.keys(this.data),131 matches = {}132 for (var i = 0, len = keys.length; i < len; ++i)133 if (regexp.test(keys[i]))134 matches[keys[i]] = this.data[keys[i]]135 return matches134 matches[keys[i]] = this.data[keys[i]].val135 callback(matches)136 },137 138 /**139 * Clear data matching the given _key_.
14 unmodified lines
154 else {155 var regexp = this.normalize(key),156 keys = Object.keys(this.data)157 for (var i = 0, len = keys.length; i < len; ++i)158 if (regexp.test(this.data[keys[i]]))159 delete this.data[keys[i]]158 if (regexp.test(keys[i]))159 this.data[keys[i]] = null160 }161 callback()162 },163
69 unmodified lines