From 796ea918866c15f0d59ce178d095022edfaf096d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 5 May 2017 02:38:39 +0200 Subject: A significant increase in the response time has been achieved, since the template parameters "$ITEM['BODY']['TEXT']" and "$ITEM['BODY']['HTML']" are now no longer strings but closures (anonymous functions). This means that the underlying logic, which parses the content or converts it into Markdown, is not executed until one of these parameters is really needed and called in the template (which maybe significantly increases the response time on a long list of items which not use one of those two parameters). This means that within templates you now have to call these parameters in the following way (note the brackets at the end, which represent a function call): In the background, the anonymous functions are called and executes $Item->getBody() and $Item->getHTML() only when needed. Previously, $Item->getBody() and $Item->getHTML() were basically executed and the parsed content was passed to the template, regardless of whether these parameters are required in the template or not! --- template/standard/html/page/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template/standard/html/page/item.php') diff --git a/template/standard/html/page/item.php b/template/standard/html/page/item.php index d0058e7..6065354 100644 --- a/template/standard/html/page/item.php +++ b/template/standard/html/page/item.php @@ -15,6 +15,6 @@
-

+

\ No newline at end of file -- cgit v1.2.3