Skip to content
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

{insert} not works when caching is enabled and included template is present #496

Closed
wyssman opened this issue Oct 5, 2018 · 1 comment
Closed

Comments

@wyssman
Copy link

wyssman commented Oct 5, 2018

If {insert name="test"} is in main template and other template is included into main template (while caching is enabled) - I see in browser part of php code like:
"/%%SmartyNocache:8801992865bb72d3e5b40d0_75775836%%/smarty; if (!is_callable('smarty_insert_test')) require_once ..."
instead of output of {insert}.

But {insert} works well when no templates is included or when caching is disabled.

This bug appeared in version 3.1.28 (3.1.27 is ok) and is still in master.

I've attached a test case - needs to be unpacked in distro folder.
bug.zip

Hope my test files will be useful to fix this problem :)

uwetews added a commit to smarty-php/smarty-phpunit that referenced this issue Oct 9, 2018
@uwetews
Copy link
Contributor

uwetews commented Oct 11, 2018

This is now fixed in the master branch and will later be included in 3.1.34

@uwetews uwetews closed this as completed Oct 11, 2018
wisskid pushed a commit that referenced this issue Apr 12, 2020
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

No branches or pull requests

2 participants