Updated caching strategy to use the WordPress Transient API.