Skip to content

Commit

Permalink
removes caching drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousManual committed Sep 15, 2014
1 parent c6f951e commit d2bff62
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 124 deletions.
10 changes: 0 additions & 10 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ var parameterMiddleware = require('./parameters/middleware');
var Injector = require('./util/di/Injector');
var RoutesLoader = require('./routing/RoutesLoader');

var Cache = require('./caching/Cache');
var createCachingMiddlewares = require('./util/cachingMiddlewares');

var resultHandler = require('./result/resultHandler');
var errorHandler = require('./result/errorHandler');

Expand All @@ -38,20 +35,13 @@ function bootstrap (app, configuration, callback) {
function _setup (app, db, mqttClient, configuration) {
var injector = _createInjector(db, mqttClient, configuration);

var cache = new Cache();
var cacheMiddlewares = createCachingMiddlewares(cache, configuration);

app.use(initMiddleware());
app.use(parameterMiddleware());

app.use(cacheMiddlewares.pre);

new RoutesLoader(path.join(__dirname, 'routes'), injector)
.load()
.mount(app);

app.use(cacheMiddlewares.post);

app.use(resultHandler);
app.use(errorHandler);
}
Expand Down
25 changes: 0 additions & 25 deletions lib/caching/Cache.js

This file was deleted.

20 changes: 0 additions & 20 deletions lib/caching/middlewares.js

This file was deleted.

21 changes: 0 additions & 21 deletions lib/util/cachingMiddlewares.js

This file was deleted.

48 changes: 0 additions & 48 deletions tests/unit/caching.tests.js

This file was deleted.

0 comments on commit d2bff62

Please sign in to comment.