all log.query() should be controlled by LOG_CACHE_HITS setting