{"action":"created","issue":{"url":"https://api.github.com/repos/twigphp/Twig/issues/1674","labels_url":"https://api.github.com/repos/twigphp/Twig/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/twigphp/Twig/issues/1674/comments","events_url":"https://api.github.com/repos/twigphp/Twig/issues/1674/events","html_url":"https://github.com/twigphp/Twig/issues/1674","id":69723554,"number":1674,"title":"The strategy of checking template cache may not work","user":{"login":"ouyangde","id":8114594,"avatar_url":"https://avatars.githubusercontent.com/u/8114594?v=3","gravatar_id":"","url":"https://api.github.com/users/ouyangde","html_url":"https://github.com/ouyangde","followers_url":"https://api.github.com/users/ouyangde/followers","following_url":"https://api.github.com/users/ouyangde/following{/other_user}","gists_url":"https://api.github.com/users/ouyangde/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyangde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyangde/subscriptions","organizations_url":"https://api.github.com/users/ouyangde/orgs","repos_url":"https://api.github.com/users/ouyangde/repos","events_url":"https://api.github.com/users/ouyangde/events{/privacy}","received_events_url":"https://api.github.com/users/ouyangde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-21T02:17:40Z","updated_at":"2015-07-03T08:54:29Z","closed_at":null,"body":"In practice, we can't make sure every templates be cached before we starting change any of them.\r\n\r\nFor example:\r\n0. We have a page, called A, which used a template, called B.\r\n1. Modify B and publish it.(Note that we publish a file with it's timestamp preserved)\r\n2. Modify B again, but do not publish.\r\n3. Access A.\r\n4. Publish B.\r\n5. Access A again, now it still renders old content of B. \r\n"},"comment":{"url":"https://api.github.com/repos/twigphp/Twig/issues/comments/118280221","html_url":"https://github.com/twigphp/Twig/issues/1674#issuecomment-118280221","issue_url":"https://api.github.com/repos/twigphp/Twig/issues/1674","id":118280221,"user":{"login":"ouyangde","id":8114594,"avatar_url":"https://avatars.githubusercontent.com/u/8114594?v=3","gravatar_id":"","url":"https://api.github.com/users/ouyangde","html_url":"https://github.com/ouyangde","followers_url":"https://api.github.com/users/ouyangde/followers","following_url":"https://api.github.com/users/ouyangde/following{/other_user}","gists_url":"https://api.github.com/users/ouyangde/gists{/gist_id}","starred_url":"https://api.github.com/users/ouyangde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouyangde/subscriptions","organizations_url":"https://api.github.com/users/ouyangde/orgs","repos_url":"https://api.github.com/users/ouyangde/repos","events_url":"https://api.github.com/users/ouyangde/events{/privacy}","received_events_url":"https://api.github.com/users/ouyangde/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T08:54:29Z","updated_at":"2015-07-03T08:54:29Z","body":"But our codes should not care about there publication date, and filesystem doesn't have publication date  stored in each file.\r\n\r\nSmaty stored modification date when generate each cache file,  I know its poor performance. Is there any solution other than clearing cache after deployment?"}}