| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-11-28 22:19:38 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-11-28 22:19:38 +0100 | 
| commit | 02da4adf9ae6b477376bb27a092feec06a3f2b91 (patch) | |
| tree | c679a019547f69f0593f2563373a373ce12f1d82 /src/io/timed_caches_manager.erl | |
| parent | 2273ff20faa24a0daba4e4b43ace250716a39172 (diff) | |
Fixes timed caches.
Allowing a refresh of the timer opened the door to exploits.
Diffstat (limited to 'src/io/timed_caches_manager.erl')
| -rw-r--r-- | src/io/timed_caches_manager.erl | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/src/io/timed_caches_manager.erl b/src/io/timed_caches_manager.erl index aad7c37..21f2b6b 100644 --- a/src/io/timed_caches_manager.erl +++ b/src/io/timed_caches_manager.erl @@ -45,7 +45,7 @@ add_cache (DB, none) ->           set,           public,           named_table, -         {keypos, 2}, +         {keypos, 1},           {read_concurrency, true},           {heir, none}        ] @@ -58,7 +58,7 @@ add_cache (DB, Heir) ->           set,           public,           named_table, -         {keypos, 2}, +         {keypos, 1},           {read_concurrency, true},           {heir, Heir, DB}        ] @@ -139,7 +139,5 @@ add_cache (CacheList, DB, Heir) ->           [DB|CacheList]     end. -get_timeout(battlemap_db) -> -   60000;  get_timeout(_) -> -   60000. +   300000. % 5min. | 


