Added caching for all php queries.