Skip to content

Commit 17bb8bc

Browse files
committed
Fix clearing cache.
1 parent 2e7fee7 commit 17bb8bc

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

image.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,11 +674,6 @@ Image.prototype.command = function(key, value, priority, esc) {
674674
return this.push(key, value, priority || 10, esc);
675675
};
676676

677-
// Clears cache with commands
678-
Image.clear = function() {
679-
CACHE = {};
680-
};
681-
682677
function wrap(command, empty) {
683678
var cmd = '';
684679
for (var i = 0, length = command.length; i < length; i++)
@@ -705,4 +700,9 @@ exports.middleware = function(type, fn) {
705700

706701
exports.restart = function() {
707702
middlewares = {};
708-
};
703+
};
704+
705+
// Clears cache with commands
706+
exports.clear = function() {
707+
CACHE = {};
708+
};

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ function Framework() {
467467

468468
this.id = null;
469469
this.version = 2200;
470-
this.version_header = '2.2.0-10';
470+
this.version_header = '2.2.0-11';
471471
this.version_node = process.version.toString().replace('v', '').replace(/\./g, '').parseFloat();
472472

473473
this.config = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"name": "Peter Štolc",
7676
"email": "stolcp@gmail.com"
7777
}],
78-
"version": "2.2.0-10",
78+
"version": "2.2.0-11",
7979
"homepage": "http://www.totaljs.com",
8080
"bugs": {
8181
"url": "https://github.com/totaljs/framework/issues",

0 commit comments

Comments
 (0)