{"action":"created","issue":{"url":"https://api.github.com/repos/trailblazer/trailblazer/issues/219","repository_url":"https://api.github.com/repos/trailblazer/trailblazer","labels_url":"https://api.github.com/repos/trailblazer/trailblazer/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/trailblazer/trailblazer/issues/219/comments","events_url":"https://api.github.com/repos/trailblazer/trailblazer/issues/219/events","html_url":"https://github.com/trailblazer/trailblazer/issues/219","id":315361582,"number":219,"title":"API to deactivate cache?","user":{"login":"saiqulhaq","id":1275215,"avatar_url":"https://avatars3.githubusercontent.com/u/1275215?v=4","gravatar_id":"","url":"https://api.github.com/users/saiqulhaq","html_url":"https://github.com/saiqulhaq","followers_url":"https://api.github.com/users/saiqulhaq/followers","following_url":"https://api.github.com/users/saiqulhaq/following{/other_user}","gists_url":"https://api.github.com/users/saiqulhaq/gists{/gist_id}","starred_url":"https://api.github.com/users/saiqulhaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saiqulhaq/subscriptions","organizations_url":"https://api.github.com/users/saiqulhaq/orgs","repos_url":"https://api.github.com/users/saiqulhaq/repos","events_url":"https://api.github.com/users/saiqulhaq/events{/privacy}","received_events_url":"https://api.github.com/users/saiqulhaq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T07:27:04Z","updated_at":"2018-04-18T07:32:02Z","closed_at":"2018-04-18T07:32:02Z","author_association":"NONE","body":"Hi\r\n\r\nI am wondering is there any way to activate cache conditionally?  \r\nlet say when developing a `Cell` in development server \r\n\r\ncurrently I do this little hack for few months, might be there is better way\r\n\r\n```ruby\r\nmodule Trailblazer\r\n\r\n  class Cell\r\n    class << self\r\n      alias_method :origin_cache, :cache\r\n\r\n      def cache(state, *args, &block)\r\n        return unless CacheSetting.enabled?\r\n        origin_cache(state, *args, &block)\r\n      end\r\n    end\r\n  end\r\n\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/trailblazer/trailblazer/issues/comments/382291915","html_url":"https://github.com/trailblazer/trailblazer/issues/219#issuecomment-382291915","issue_url":"https://api.github.com/repos/trailblazer/trailblazer/issues/219","id":382291915,"user":{"login":"apotonick","id":10406,"avatar_url":"https://avatars2.githubusercontent.com/u/10406?v=4","gravatar_id":"","url":"https://api.github.com/users/apotonick","html_url":"https://github.com/apotonick","followers_url":"https://api.github.com/users/apotonick/followers","following_url":"https://api.github.com/users/apotonick/following{/other_user}","gists_url":"https://api.github.com/users/apotonick/gists{/gist_id}","starred_url":"https://api.github.com/users/apotonick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apotonick/subscriptions","organizations_url":"https://api.github.com/users/apotonick/orgs","repos_url":"https://api.github.com/users/apotonick/repos","events_url":"https://api.github.com/users/apotonick/events{/privacy}","received_events_url":"https://api.github.com/users/apotonick/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T07:32:02Z","updated_at":"2018-04-18T07:32:02Z","author_association":"COLLABORATOR","body":"Hi, this is the wrong repository, you want to ask here: https://github.com/trailblazer/cells-rails"}}
{"actor":{"display_login":"apotonick"}}