use cache for ajax