query cache log