working on environment cache for making sure that cached sites do not connect to the database for regular page loads