From 3381f964495903ec5bfeffcdeea132f644792898 Mon Sep 17 00:00:00 2001 From: Dean McDonnell Date: Fri, 26 Aug 2016 12:07:07 +0100 Subject: [PATCH] Disable actcache by default --- CHANGES.md | 2 +- seneca.js | 2 +- test/seneca.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 817a11b2..512a7c99 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,5 @@ ## 3.0: 2016-08-26 - * Refactored 'old' logging into it's own external plugin; seneca-legacy-logger. * Added new adaptor based JSON logging. External loggers can now be used with Seneca. * Created new 'built-in' logger which is used as the default logger if none are provided. @@ -10,6 +9,7 @@ * Exposed parsepattern function via seneca.util.parsepattern as required by seneca-chain to function. * Removed all 'dead' code marked legacy. Updated other parts of codebase with legacy comments for v.next. * Removed default settings for seneca-admin as it is not a default loaded plugin. +* Set `options.actcache.active` to be false by default. Disables actcache feature by default. * Moved `close_signals` from `options.internal` to `options.system`. * Moved `catchall` from `options.internal` to `options.system`. * Removed `options.schema` as it was only partially checking and needs a rethink. diff --git a/seneca.js b/seneca.js index 2406ad2a..d5d210c8 100644 --- a/seneca.js +++ b/seneca.js @@ -102,7 +102,7 @@ var internals = { // Action cache. Makes inbound messages idempotent. actcache: { - active: true, + active: false, size: 11111 }, diff --git a/test/seneca.test.js b/test/seneca.test.js index b44eacc2..50551cd8 100644 --- a/test/seneca.test.js +++ b/test/seneca.test.js @@ -882,7 +882,7 @@ describe('seneca', function () { }) it('act-cache', function (done) { - var si = Seneca(testopts) + var si = Seneca(testopts, {actcache: {active: true}}) si.options({errhandler: done}) si.use('entity')