fixed typo that prevented context for front page from being set
do not clear query cache when it does not exist
Fixes #5848 adds ability to turn off query cache