Skip to content

Add something about clear the cache when template is added #1587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add something about clear the cache when template is added #1587

wants to merge 1 commit into from

Conversation

ip512
Copy link
Contributor

@ip512 ip512 commented Jul 24, 2012

it could save time to many people !

@weaverryan
Copy link
Member

Hi Grégory!

Ah, excellent note! This is actually interesting, as it only affects you if you originally call cache:clear, as it creates the cached templates.php file, which causes the issue (and that file, unlike most others, does not auto-refresh itself, as your note indicates). But if you manually clear out your cache directory (i.e. rm -rf app/cache/*) during development, then this is never an issue - as the templates.php file is only created during the cache warming process.

SO, your note here is perfect - I'm just adding the details above in case anyone else comes across your PR :). I did shorten the language a bit to be more direct - hopefully it will be more noticeable that way.

Since this also affects the 2.0 branch, I've patched your change in at sha: 3b7e398

Thanks for your contribution!

@weaverryan weaverryan closed this Jul 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants