Store menu cache only if WP supports pre_wp_nav_menu filter