Deprecating functions for caching json in a php file