{"action":"created","issue":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/625","labels_url":"https://api.github.com/repos/netz98/n98-magerun/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/netz98/n98-magerun/issues/625/comments","events_url":"https://api.github.com/repos/netz98/n98-magerun/issues/625/events","html_url":"https://github.com/netz98/n98-magerun/pull/625","id":98838298,"number":625,"title":"Validate cache codes on cache enable, disable and clean.","user":{"login":"convenient","id":600190,"avatar_url":"https://avatars.githubusercontent.com/u/600190?v=3","gravatar_id":"","url":"https://api.github.com/users/convenient","html_url":"https://github.com/convenient","followers_url":"https://api.github.com/users/convenient/followers","following_url":"https://api.github.com/users/convenient/following{/other_user}","gists_url":"https://api.github.com/users/convenient/gists{/gist_id}","starred_url":"https://api.github.com/users/convenient/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/convenient/subscriptions","organizations_url":"https://api.github.com/users/convenient/orgs","repos_url":"https://api.github.com/users/convenient/repos","events_url":"https://api.github.com/users/convenient/events{/privacy}","received_events_url":"https://api.github.com/users/convenient/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-03T21:04:06Z","updated_at":"2015-08-04T10:56:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/netz98/n98-magerun/pulls/625","html_url":"https://github.com/netz98/n98-magerun/pull/625","diff_url":"https://github.com/netz98/n98-magerun/pull/625.diff","patch_url":"https://github.com/netz98/n98-magerun/pull/625.patch"},"body":"### Current functionality\r\n```\r\nn98-magerun.phar cache:disable eavv\r\nCache eavv disabled\r\n```\r\n### New functionality\r\n```\r\nn98-magerun.phar cache:disable eavv\r\n           \r\n  [InvalidArgumentException]  \r\n  Invalid cache type: eavv    \r\n                              \r\ncache:disable [code]\r\n```\r\n\r\nSame for `cache:enable` and `cache:clean`.\r\n\r\nSolves issue #620 "},"comment":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/comments/127565289","html_url":"https://github.com/netz98/n98-magerun/pull/625#issuecomment-127565289","issue_url":"https://api.github.com/repos/netz98/n98-magerun/issues/625","id":127565289,"user":{"login":"tkn98","id":10513307,"avatar_url":"https://avatars.githubusercontent.com/u/10513307?v=3","gravatar_id":"","url":"https://api.github.com/users/tkn98","html_url":"https://github.com/tkn98","followers_url":"https://api.github.com/users/tkn98/followers","following_url":"https://api.github.com/users/tkn98/following{/other_user}","gists_url":"https://api.github.com/users/tkn98/gists{/gist_id}","starred_url":"https://api.github.com/users/tkn98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkn98/subscriptions","organizations_url":"https://api.github.com/users/tkn98/orgs","repos_url":"https://api.github.com/users/tkn98/repos","events_url":"https://api.github.com/users/tkn98/events{/privacy}","received_events_url":"https://api.github.com/users/tkn98/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T10:56:04Z","updated_at":"2015-08-04T10:56:04Z","body":"You found a problem :) +1 - IMHO this is cache related so should move (if possible) into the subtype (**AbstractCacheCommand**). This should not break any tests (and hopefully no 3rd party extensions), if it breaks anything, we need to deprecate it first suggesting to use the abstract cache command instead.\r\n\r\nWhat do you think?"}}