{"action":"created","issue":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/613","labels_url":"https://api.github.com/repos/netz98/n98-magerun/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/netz98/n98-magerun/issues/613/comments","events_url":"https://api.github.com/repos/netz98/n98-magerun/issues/613/events","html_url":"https://github.com/netz98/n98-magerun/issues/613","id":96276210,"number":613,"title":"Cache flush does not work properly (setup scripts not executed when accessing via browser)","user":{"login":"amenk","id":1087128,"avatar_url":"https://avatars.githubusercontent.com/u/1087128?v=3","gravatar_id":"","url":"https://api.github.com/users/amenk","html_url":"https://github.com/amenk","followers_url":"https://api.github.com/users/amenk/followers","following_url":"https://api.github.com/users/amenk/following{/other_user}","gists_url":"https://api.github.com/users/amenk/gists{/gist_id}","starred_url":"https://api.github.com/users/amenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amenk/subscriptions","organizations_url":"https://api.github.com/users/amenk/orgs","repos_url":"https://api.github.com/users/amenk/repos","events_url":"https://api.github.com/users/amenk/events{/privacy}","received_events_url":"https://api.github.com/users/amenk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/netz98/n98-magerun/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-21T09:55:52Z","updated_at":"2015-08-04T13:00:19Z","closed_at":null,"body":"When I use cache:flush and open magento in the webbrowser, my (new) setup scripts are not executed.\r\nIf I do `rm -rf var/cache/*` it works.\r\n\r\nI use the file cache storage and \r\n\r\n        <cache>\r\n             <backend>File</backend>\r\n             <backend_options>\r\n                     <hashed_directory_perm><![CDATA[777]]></hashed_directory_perm>\r\n                     <cache_file_perm><![CDATA[666]]></cache_file_perm>\r\n                     <cache_file_umask><![CDATA[666]]></cache_file_umask>\r\n             </backend_options>\r\n         </cache>\r\n\r\n`cache:flush` also does a `reinitCache()` - do we really need this?\r\n\r\nThe situation after `cache:flush`:\r\n\r\n\talex@me:~/local-workspace/shop/public/var/cache$ ls -alh\r\n\ttotal 40K\r\n\tdrwxrwxrwx 10 www-data www-data 4,0K Jul 21 11:54 .\r\n\tdrwxrwxr-x 16 alex      www-data 4,0K Jul  9 11:41 ..\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--2\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--4\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--5\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--6\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--7\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--8\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--9\r\n\tdrwxrwxrwx  2 alex      alex      4,0K Jul 21 11:54 mage--b\r\n"},"comment":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/comments/127596856","html_url":"https://github.com/netz98/n98-magerun/issues/613#issuecomment-127596856","issue_url":"https://api.github.com/repos/netz98/n98-magerun/issues/613","id":127596856,"user":{"login":"amenk","id":1087128,"avatar_url":"https://avatars.githubusercontent.com/u/1087128?v=3","gravatar_id":"","url":"https://api.github.com/users/amenk","html_url":"https://github.com/amenk","followers_url":"https://api.github.com/users/amenk/followers","following_url":"https://api.github.com/users/amenk/following{/other_user}","gists_url":"https://api.github.com/users/amenk/gists{/gist_id}","starred_url":"https://api.github.com/users/amenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amenk/subscriptions","organizations_url":"https://api.github.com/users/amenk/orgs","repos_url":"https://api.github.com/users/amenk/repos","events_url":"https://api.github.com/users/amenk/events{/privacy}","received_events_url":"https://api.github.com/users/amenk/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T13:00:19Z","updated_at":"2015-08-04T13:00:19Z","body":"So what can we do? I think this is a pretty critical problem as it always causes invalid states after cache flushes."}}