Fixed cache expiration

This commit is contained in:
Zaid Abdulla committed 2012-12-21 00:05:46 +03:00
1 parent 20992e8630
commit 658d54fa9c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ else
s = "# REQUEST #{new Date(Date.now())}\n" + JSON.stringify(request.headers) + "\n#{request.getBody()}\n\n"
memcached.append("debug-#{currentClientIP}", s, (err, result) ->
if err == 'Item is not stored'
memcached.set("debug-#{currentClientIP}", s, 10, (err, result) ->
memcached.set("debug-#{currentClientIP}", s, config.CACHE_DURATION, (err, result) ->
)
)