Enable debug code

Debug function prints old and new cache flag in Console.