added cache for flatpages