...
Code Block |
---|
nmisx_db_cache_enable' => 1 |
There are two more configuration items that control how the cache works:
Code Block |
---|
nmisx_cache_min_age_before_refresh' => 60 |
This setting tells the app how long to wait before checking to see if the cache needs refreshing. In order to know if the cache needs refreshing we check the time the nodesum files are written and compare that against the time the cache was built. This is a simple optimisation. Since we access the cache quite often it gets a little expensive to check it several times a second, this prevents those checks for at least X seconds. The idea is that NMIS only writes the nodesum files at most once a minute so don’t bother looking more than that often.
Code Block |
---|
nmisx_cache_time' => 900 |
This setting controls how long the data will stay in the cache before it’s removed. This is only for db mode, in memory mode this will have no affect.