Fixed cache expiration
This commit is contained in:
1 parent
20992e8630
commit
658d54fa9c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -176,7 +176,7 @@ else
|
|||||||
s = "# REQUEST #{new Date(Date.now())}\n" + JSON.stringify(request.headers) + "\n#{request.getBody()}\n\n"
|
s = "# REQUEST #{new Date(Date.now())}\n" + JSON.stringify(request.headers) + "\n#{request.getBody()}\n\n"
|
||||||
memcached.append("debug-#{currentClientIP}", s, (err, result) ->
|
memcached.append("debug-#{currentClientIP}", s, (err, result) ->
|
||||||
if err == 'Item is not stored'
|
if err == 'Item is not stored'
|
||||||
memcached.set("debug-#{currentClientIP}", s, 10, (err, result) ->
|
memcached.set("debug-#{currentClientIP}", s, config.CACHE_DURATION, (err, result) ->
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ exports.ACS_PORT = 7547 # same as AP Manager's port
|
|||||||
exports.ACS_INTERFACE = '0.0.0.0'
|
exports.ACS_INTERFACE = '0.0.0.0'
|
||||||
exports.API_PORT = 7557
|
exports.API_PORT = 7557
|
||||||
exports.API_INTERFACE = '0.0.0.0'
|
exports.API_INTERFACE = '0.0.0.0'
|
||||||
exports.CACHE_DURATION = 60 # in seconds
|
exports.CACHE_DURATION = 60000 # in milliseconds
|
||||||
exports.MONGODB_SOCKET = '/tmp/mongodb-27017.sock'
|
exports.MONGODB_SOCKET = '/tmp/mongodb-27017.sock'
|
||||||
exports.MEMCACHED_SOCKET = '/tmp/memcached.sock'
|
exports.MEMCACHED_SOCKET = '/tmp/memcached.sock'
|
||||||
exports.WORKER_RESPAWN_TIME = 3000
|
exports.WORKER_RESPAWN_TIME = 3000
|
||||||
|
|||||||
Reference in new issue
Block a user