{"action":"created","issue":{"url":"https://api.github.com/repos/shopware/shopware/issues/143","labels_url":"https://api.github.com/repos/shopware/shopware/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/shopware/shopware/issues/143/comments","events_url":"https://api.github.com/repos/shopware/shopware/issues/143/events","html_url":"https://github.com/shopware/shopware/pull/143","id":28356950,"number":143,"title":"Added cache clear commands","user":{"login":"benboit","id":791253,"avatar_url":"https://avatars.githubusercontent.com/u/791253?v=3","gravatar_id":"","url":"https://api.github.com/users/benboit","html_url":"https://github.com/benboit","followers_url":"https://api.github.com/users/benboit/followers","following_url":"https://api.github.com/users/benboit/following{/other_user}","gists_url":"https://api.github.com/users/benboit/gists{/gist_id}","starred_url":"https://api.github.com/users/benboit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benboit/subscriptions","organizations_url":"https://api.github.com/users/benboit/orgs","repos_url":"https://api.github.com/users/benboit/repos","events_url":"https://api.github.com/users/benboit/events{/privacy}","received_events_url":"https://api.github.com/users/benboit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-02-26T18:29:18Z","updated_at":"2015-02-12T19:50:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shopware/shopware/pulls/143","html_url":"https://github.com/shopware/shopware/pull/143","diff_url":"https://github.com/shopware/shopware/pull/143.diff","patch_url":"https://github.com/shopware/shopware/pull/143.patch"},"body":"Added cache-clear-commands which use the shopware cache-manager service to clear caches. Useful for deployments."},"comment":{"url":"https://api.github.com/repos/shopware/shopware/issues/comments/74139688","html_url":"https://github.com/shopware/shopware/pull/143#issuecomment-74139688","issue_url":"https://api.github.com/repos/shopware/shopware/issues/143","id":74139688,"user":{"login":"jhofm","id":8502402,"avatar_url":"https://avatars.githubusercontent.com/u/8502402?v=3","gravatar_id":"","url":"https://api.github.com/users/jhofm","html_url":"https://github.com/jhofm","followers_url":"https://api.github.com/users/jhofm/followers","following_url":"https://api.github.com/users/jhofm/following{/other_user}","gists_url":"https://api.github.com/users/jhofm/gists{/gist_id}","starred_url":"https://api.github.com/users/jhofm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhofm/subscriptions","organizations_url":"https://api.github.com/users/jhofm/orgs","repos_url":"https://api.github.com/users/jhofm/repos","events_url":"https://api.github.com/users/jhofm/events{/privacy}","received_events_url":"https://api.github.com/users/jhofm/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:50:13Z","updated_at":"2015-02-12T19:50:13Z","body":"I'm mostly interested in the deploying angle and would like to point out that in many cases it would be preferable to build the cache via cli and switch to that instantly. (via symlink for filesystems and versioning for configuration/cachey stuff in other storages). the problem with clearing is that you leave it to webserver workers to rebuild the updated caches. uncached requests take a while to handle, so you quickly get a concurrency problem with multiple processes trying to write the same data to the same place. For example I've had a memorable deployment that shipped while we were hammered by the bing bot, which caused APC to allocate over 8GBs of RAM before it stopped trying. Fortunately most commands needed to prebuild the important caches already have commands since sw4.2. but it would be nice to have a bit more grease provided by the core. ;)"}}