pub fn debug_print_cache(session_id: &str, query: &str) -> Result<()>
Debug function to print cache contents (only used when DEBUG=1)