removed unused global variable
use the right cache key when accessing expired Identifier to Canonical URL cache
fix broken syntax