added $table_name to check_query_cache