Jawsh
Active member
I am doing add-on development and after XF2.1.3's upgrade there is a noticeable issue where the code cache appears to be caching errors continuously and there's no way to force a recache.
I've tried deleting these files, deleting the entire /code_cache/ directory, but the only thing that works is changing the $config['cache'] settings -- and that only works temporarily. It will then cache another error, and I have to change it again. This is extremely obnoxious and I'm finding myself doing it multiple times an hour. I just wasted 30 minutes trying to find a LESS error that ruined all custom styling, only to realize the .css template itself is throwing 500 errors due to this bug.
I have development mode enabled and caching off by default. There should be no code caching.
Code:
#0 src/XF/Template/Templater.php(613): XF\Template\Templater->getTemplateDataFromSource('public', 'hb_chat.less')
#1 src/XF/Template/Templater.php(1257): XF\Template\Templater->getTemplateData('public', 'hb_chat.less', false)
#2 src/XF/CssRenderer.php(313): XF\Template\Templater->isKnownTemplate('hb_chat.less')
#3 src/XF/CssRenderer.php(250): XF\CssRenderer->renderTemplate('public:hb_chat....', NULL)
#4 src/XF/CssRenderer.php(116): XF\CssRenderer->renderTemplates(Array, Array, Array)
#5 src/XF/CssWriter.php(53): XF\CssRenderer->render(Array)
#6 css.php(30): XF\CssWriter->run(Array, 1, 1, 'bc38b08299e2bfe...')
#7 {main}
An exception occurred: [ParseError] syntax error, unexpected ''@_attach-thumbSize: xf-option' (T_ENCAPSED_AND_WHITESPACE) in internal_data/code_cache/templates/l1/s1/public/hb_chat.less.php on line 6
- XF\Template\Templater->getTemplateDataFromSource() in src/XF/Template/Templater.php at line 613
- XF\Template\Templater->getTemplateData() in src/XF/Template/Templater.php at line 1257
- XF\Template\Templater->isKnownTemplate() in src/XF/CssRenderer.php at line 313
- XF\CssRenderer->renderTemplate() in src/XF/CssRenderer.php at line 250
- XF\CssRenderer->renderTemplates() in src/XF/CssRenderer.php at line 116
- XF\CssRenderer->render() in src/XF/CssWriter.php at line 53
- XF\CssWriter->run() in css.php at line 30
I've tried deleting these files, deleting the entire /code_cache/ directory, but the only thing that works is changing the $config['cache'] settings -- and that only works temporarily. It will then cache another error, and I have to change it again. This is extremely obnoxious and I'm finding myself doing it multiple times an hour. I just wasted 30 minutes trying to find a LESS error that ruined all custom styling, only to realize the .css template itself is throwing 500 errors due to this bug.
I have development mode enabled and caching off by default. There should be no code caching.