Open okaresz opened 11 years ago
Also, Tpl::$conf['registered_tags']
is not used anywhere in the code. Deprecated?
that's right, we should do the checksum for both, and yes we can remove register tag: https://github.com/rainphp/raintpl3/blob/master/library/Rain/Tpl.php#L41
The callback hashing is not trivial, but spl_object_hash is a solution (something like this ) I could propose a pull request, but I'm not so familiar with the very recent updates in the master branch..
Cool, I'll look at it and fix this soon!
The registered tags (and maybe plugins also) should be part of the checksum generating / checking process.
Now, as the checksum only contains the config array, If I draw the template with different set of registered tags, it will NOT be re-parsed.