{"action":"created","issue":{"url":"https://api.github.com/repos/octobercms/october/issues/1250","labels_url":"https://api.github.com/repos/octobercms/october/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/octobercms/october/issues/1250/comments","events_url":"https://api.github.com/repos/octobercms/october/issues/1250/events","html_url":"https://github.com/octobercms/october/issues/1250","id":92353492,"number":1250,"title":"CodeParser concurrent access error","user":{"login":"shina","id":356745,"avatar_url":"https://avatars.githubusercontent.com/u/356745?v=3","gravatar_id":"","url":"https://api.github.com/users/shina","html_url":"https://github.com/shina","followers_url":"https://api.github.com/users/shina/followers","following_url":"https://api.github.com/users/shina/following{/other_user}","gists_url":"https://api.github.com/users/shina/gists{/gist_id}","starred_url":"https://api.github.com/users/shina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shina/subscriptions","organizations_url":"https://api.github.com/users/shina/orgs","repos_url":"https://api.github.com/users/shina/repos","events_url":"https://api.github.com/users/shina/events{/privacy}","received_events_url":"https://api.github.com/users/shina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-01T11:14:48Z","updated_at":"2015-09-16T12:57:27Z","closed_at":null,"body":"Receiving concurrent access to my october website is throwing this exception:\r\n\r\nexception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Class 'Cms5593c06736213_2556179689Class' not found' in /var/app/current/modules/cms/classes/CodeParser.php:162\r\nStack trace:\r\n#0 {main}\r\n\r\nTrying to figure out what is happening, I found a bug(?) on php (or Apache or OS ?) that when a file is being creating and another process o the same time check its existence it returns true, indicating that the file exists. But when try to access, the file is not totally created, thowing this exception.\r\nIts happening very often. I receive ~100 simultaneous visitors along the day.\r\n\r\nI could reproduce this problem executing Apache Bench with 5 or more concurrent requests.\r\nab -n 100 -c 5 http://localhost/\r\n\r\nIt's annoying me. \r\nAnyone have this problem?\r\nPerhaps it could be a server problem? (we use amazon servers)"},"comment":{"url":"https://api.github.com/repos/octobercms/october/issues/comments/140733530","html_url":"https://github.com/octobercms/october/issues/1250#issuecomment-140733530","issue_url":"https://api.github.com/repos/octobercms/october/issues/1250","id":140733530,"user":{"login":"shina","id":356745,"avatar_url":"https://avatars.githubusercontent.com/u/356745?v=3","gravatar_id":"","url":"https://api.github.com/users/shina","html_url":"https://github.com/shina","followers_url":"https://api.github.com/users/shina/followers","following_url":"https://api.github.com/users/shina/following{/other_user}","gists_url":"https://api.github.com/users/shina/gists{/gist_id}","starred_url":"https://api.github.com/users/shina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shina/subscriptions","organizations_url":"https://api.github.com/users/shina/orgs","repos_url":"https://api.github.com/users/shina/repos","events_url":"https://api.github.com/users/shina/events{/privacy}","received_events_url":"https://api.github.com/users/shina/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T12:57:27Z","updated_at":"2015-09-16T12:57:27Z","body":"Basically it uses the Cache class instead of file manipulation.\r\n\r\nhttps://gist.github.com/shina/3b37a2cf23efea3f2de3/revisions?diff=split"}}