Answer the question
In order to leave comments, you need to log in
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
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
0.0250790 s
0.0352669 s
0.0242062 s
0.0373089 s
0.0293500 s
0.0265739 s
0.0234509 s
0.0280540 s
0.0213931 s
0.0280240 s
0.0262880 s
0.0429640 s
0.0220671 s
0.0202100 s
0.0253940 s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question