Fix app_reverse() to cache pagetypes per SITE_ID