Add environment detection
removing unnecessary public var
Caching the posts