W
W
weranda2017-01-25 15:31:47
MODX
weranda, 2017-01-25 15:31:47

Which of the MODX ways will be faster to generate and serve a page?

Greetings
, please clarify the situation.
There is code, simple code:
<div> 100 строк html</div>
There are four options for adding it:
Option #1
Adding html code to the template
Option #2
Adding html code to the resource
Option #3
Adding html code to the chunk, and adding the cacheable chunk to the template
Option #4
Adding html code to the resource chunk, and add the cached chunk to the resource
. What is better, faster, more reliable, and most importantly, more correct?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2017-01-25
@weranda

You can tweak debugParser yourself.
More extreme tests need to be done.
Here's what I got for Total parse time (3 attempts per option):
s8307.h7.modhost.pro/index.php?id=1&debug=1

0.0370228 s
0.0246701 s
0.0233338 s

s8307.h7.modhost.pro/index.php?id=2&debug=1
0.0250790 s
0.0352669 s
0.0242062 s

Не кэшируется
s8307.h7.modhost.pro/index.php?id=3&debug=1
0.0373089 s
0.0293500 s
0.0265739 s

Включаю кэш
s8307.h7.modhost.pro/index.php?id=3&debug=1&cache=1
0.0234509 s
0.0280540 s
0.0213931 s

Не кэшируется
s8307.h7.modhost.pro/index.php?id=4&debug=1
0.0280240 s
0.0262880 s
0.0429640 s

Включаю кэш
s8307.h7.modhost.pro/index.php?id=4&debug=1&cache=1
0.0220671 s
0.0202100 s
0.0253940 s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question