Re-organized rendering (read source / compile / cache) process to avoid circular dependencies.

Deactivated merge_compiled_includes and the {include inline} attribute. They don't seem to do much in terms of performance, but we'll
have to check back.
This commit is contained in:
Simon Wisselink
2023-01-25 16:59:10 +01:00
parent 46dfed3837
commit 169cd924df
18 changed files with 213 additions and 374 deletions

View File

@@ -9,9 +9,7 @@
namespace Smarty\Resource;
use Smarty\Smarty;
use Smarty\Template;
use Smarty\Template\Compiled;
/**
* Smarty Resource Plugin
@@ -45,7 +43,7 @@ abstract class RecompiledPlugin extends BasePlugin {
*
* @throws Exception
*/
public function process(Template $_smarty_tpl) {
public function recompile(Template $_smarty_tpl) {
$compiled = $_smarty_tpl->getCompiled();
$compiled->file_dependency = [];
$compiled->includes = [];