{"action":"created","issue":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/166","labels_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/166/comments","events_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/166/events","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/166","id":103003363,"number":166,"title":"Setting to enable/disable Cache","user":{"login":"lowedown","id":5360168,"avatar_url":"https://avatars.githubusercontent.com/u/5360168?v=3","gravatar_id":"","url":"https://api.github.com/users/lowedown","html_url":"https://github.com/lowedown","followers_url":"https://api.github.com/users/lowedown/followers","following_url":"https://api.github.com/users/lowedown/following{/other_user}","gists_url":"https://api.github.com/users/lowedown/gists{/gist_id}","starred_url":"https://api.github.com/users/lowedown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowedown/subscriptions","organizations_url":"https://api.github.com/users/lowedown/orgs","repos_url":"https://api.github.com/users/lowedown/repos","events_url":"https://api.github.com/users/lowedown/events{/privacy}","received_events_url":"https://api.github.com/users/lowedown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T11:34:55Z","updated_at":"2015-08-25T11:57:24Z","closed_at":null,"body":"Hi\r\n\r\nIt would be great if it you could add a possibility to enable/disable caching via config. Currently it is only possible to enable/disable it via Annotations in code.\r\nWe need this because we only want to use caching on our delivery instances and disable it on authoring instances."},"comment":{"url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/comments/134563215","html_url":"https://github.com/mikeedwards83/Glass.Mapper/issues/166#issuecomment-134563215","issue_url":"https://api.github.com/repos/mikeedwards83/Glass.Mapper/issues/166","id":134563215,"user":{"login":"cardinal252","id":3605218,"avatar_url":"https://avatars.githubusercontent.com/u/3605218?v=3","gravatar_id":"","url":"https://api.github.com/users/cardinal252","html_url":"https://github.com/cardinal252","followers_url":"https://api.github.com/users/cardinal252/followers","following_url":"https://api.github.com/users/cardinal252/following{/other_user}","gists_url":"https://api.github.com/users/cardinal252/gists{/gist_id}","starred_url":"https://api.github.com/users/cardinal252/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardinal252/subscriptions","organizations_url":"https://api.github.com/users/cardinal252/orgs","repos_url":"https://api.github.com/users/cardinal252/repos","events_url":"https://api.github.com/users/cardinal252/events{/privacy}","received_events_url":"https://api.github.com/users/cardinal252/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T11:57:24Z","updated_at":"2015-08-25T11:57:24Z","body":"You can use the DisableCache class to disable it globally as far as I know, either by using:\r\n\r\nDisableCache disableCache = new DisableCache();\r\n\r\nor\r\n\r\nDisableCache.Current = CacheSetting.Disabled;\r\n\r\nI would recommend the first as its the official way of doing it.\r\n\r\nSimply patch in a pipeline processor to your environment and this should do the trick."}}