Uncomment function to update application cache, and change timing to call array sort.