fix(perf): correctly re-enable querycache after elggbatch run

The query cache should always be enabled if a batch ends, otherwise everything after the batch run will not use the query cache.