Fix CACHETIMEOUT to not wait for cache expiry.
commiteca6710bd3f84e56aafa1223ff6e1fae474ed45f
authorBen Kibbey <bjk@luxsci.net>
Sat, 27 Sep 2014 15:44:25 +0000 (27 11:44 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sat, 27 Sep 2014 16:30:03 +0000 (27 12:30 -0400)
tree01c07dfaed0d62d9f6c62397f5c03cb42fab912e
parentec9d80d25326cf9c6a72b9320c3e1f9f11c15dd9
Fix CACHETIMEOUT to not wait for cache expiry.

Set the cache timeout for a data file immediately with CACHETIMEOUT. But
only if the cache entry is not deferred for clearing. Previously, the
old timer would have needed to expire before the new value was used.

This commit also fixes using the cache_timeout in a filename section
of the configuration file rather than the global default.
src/cache.c
src/commands.c