diff --git a/system/PageCache.js b/system/PageCache.js index 0de48f3..8230336 100644 --- a/system/PageCache.js +++ b/system/PageCache.js @@ -23,10 +23,11 @@ class PageCache setInterval( () => { var d = new Date().getTime(); - for( var i in this.cache ) + for( let store of this.cache ) + for( var i in store ) { - var c = this.cache[ i ]; - if( c.ttl < d ) delete this.cache[ i ]; + var c = store[ i ]; + if( c.ttl < d ) delete store[ i ]; } for( var i in this.excepts )