fixed issues with building urls with drafts mode
caching only in production mode using RACK_ENV