The ets_lru TTL is specified in milliseconds This makes a significant difference in caching efficacy.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/commit/3c7c53d7 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/tree/3c7c53d7 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/diff/3c7c53d7 Branch: refs/heads/import Commit: 3c7c53d7a9c67572862d088d8ac4905378843f98 Parents: c3e004d Author: Paul J. Davis <[email protected]> Authored: Thu Jan 24 01:11:43 2013 -0600 Committer: Paul J. Davis <[email protected]> Committed: Thu Jan 24 01:11:43 2013 -0600 ---------------------------------------------------------------------- src/ddoc_cache.app.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/blob/3c7c53d7/src/ddoc_cache.app.src ---------------------------------------------------------------------- diff --git a/src/ddoc_cache.app.src b/src/ddoc_cache.app.src index 90ff57a..334aed5 100644 --- a/src/ddoc_cache.app.src +++ b/src/ddoc_cache.app.src @@ -20,6 +20,6 @@ {env, [ {max_objects, unlimited}, {max_size, 104857600}, % 100M - {max_lifetime, 60} % 1m + {max_lifetime, 60000} % 1m ]} ]}.
