{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/19912","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/19912/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/19912/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/19912/events","html_url":"https://github.com/symfony/symfony/issues/19912","id":176273093,"number":19912,"title":"Cache component problem","user":{"login":"vudaltsov","id":2552865,"avatar_url":"https://avatars.githubusercontent.com/u/2552865?v=3","gravatar_id":"","url":"https://api.github.com/users/vudaltsov","html_url":"https://github.com/vudaltsov","followers_url":"https://api.github.com/users/vudaltsov/followers","following_url":"https://api.github.com/users/vudaltsov/following{/other_user}","gists_url":"https://api.github.com/users/vudaltsov/gists{/gist_id}","starred_url":"https://api.github.com/users/vudaltsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vudaltsov/subscriptions","organizations_url":"https://api.github.com/users/vudaltsov/orgs","repos_url":"https://api.github.com/users/vudaltsov/repos","events_url":"https://api.github.com/users/vudaltsov/events{/privacy}","received_events_url":"https://api.github.com/users/vudaltsov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Cache","name":"Cache","color":"dddddd"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Unconfirmed","name":"Unconfirmed","color":"444444"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-11T23:56:46Z","updated_at":"2016-09-14T07:48:35Z","closed_at":null,"body":"Symfony 3.1\r\n\r\n1. Run from console `cache:clear`\r\n2. Run command, which saves an item in the symfony cache\r\n3. Open the page in browser, where this item is fetched, get `$cacheItem->isHit = false`\r\n\r\nWorking scenario:\r\n1. Run `cache:clear`\r\n2. Open some other page in browser (which doesn't request the item from the cache)\r\n3. Run command, which warms-up the cache item\r\n4. Open the page in browser, where this cache item is fetched, get `$cacheItem->isHit = true` and everything works fine\r\n\r\nSo, it looks like running the cache warm-up command right after the cache:clear command doesn't make sense. Is this the expected behaviour?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/246933262","html_url":"https://github.com/symfony/symfony/issues/19912#issuecomment-246933262","issue_url":"https://api.github.com/repos/symfony/symfony/issues/19912","id":246933262,"user":{"login":"vudaltsov","id":2552865,"avatar_url":"https://avatars.githubusercontent.com/u/2552865?v=3","gravatar_id":"","url":"https://api.github.com/users/vudaltsov","html_url":"https://github.com/vudaltsov","followers_url":"https://api.github.com/users/vudaltsov/followers","following_url":"https://api.github.com/users/vudaltsov/following{/other_user}","gists_url":"https://api.github.com/users/vudaltsov/gists{/gist_id}","starred_url":"https://api.github.com/users/vudaltsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vudaltsov/subscriptions","organizations_url":"https://api.github.com/users/vudaltsov/orgs","repos_url":"https://api.github.com/users/vudaltsov/repos","events_url":"https://api.github.com/users/vudaltsov/events{/privacy}","received_events_url":"https://api.github.com/users/vudaltsov/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T07:48:35Z","updated_at":"2016-09-14T07:48:35Z","body":"I am digging into the problem in my actual project.\r\n\r\nI noticed that when I run warmup command right after the cache clear command, it creates cache in a different place than if I run my command after I once go to the browser.\r\n\r\nWhat finally solved the issue was commenting the `'name'` element in `Symfony\\Bundle\\FrameworkBundle\\DependencyInjection\\Compiler\\CachePoolPass` at 33, because right after clearing the cache the `'%kernel.name%' = '_ap'` and only later it becomes `app`"}}
{"actor":{"display_login":"vudaltsov"}}