Hi, i´ve built a site with Revo and have a page where 160 documents get listed via the getResource snippet.
Each document contains up to 12 template variables.
Speed measure (with MODx info-tags) shows the following:
QueryTime: 0.0003 s
Queries: 3
Total time: 17.1366 s
17 seconds is much too long for this. Since the QueryTime
is very fast, i think it has to be the parsing of the TVs.
When i remove some of the TVs, the output happens faster.
Here is my uncached snippetcall:
[[getResources? &parents=`61`&tpl=`adresse`&includeTVs=`1`&tvPrefix=``&limit=`500`]]
And my adresse chunk:
<div class="addresscontainer clearfix">
<p>
[[If? &subject=`[[hotelbild?&alias=`[[+alias]]`]]` &operator=`notempty` &then=`<img class="floatright" src="assets/image.php?src=[[hotelbild?&alias=`[[+alias]]`]]&w=150&h=120&ar=1" />`]]
<b>[[+pagetitle]]</b><br />
[[If? &subject=`[[+Ort]]` &operator=`notempty` &then=`[[If? &subject=`[[+PLZ]]` &operator=`notempty` &then=`[[+PLZ]] [[+Ort]]`]]`]]
<div class="clearfix">
[[If? &subject=`[[+strasse]]` &operator=`notempty` &then=`<p>`]]
[[If? &subject=`[[+Vorname]][[+Nachname]]` &operator=`notempty` &then=`[[+Vorname]] [[+Nachname]]<br />`]]
[[If? &subject=`[[+strasse]]` &operator=`notempty` &then=`[[+strasse]]<br />`]]
[[If? &subject=`[[+Telefon]]` &operator=`notempty` &then=`Tel.: [[+Telefon]]<br />`]]
[[If? &subject=`[[+Mobil]]` &operator=`notempty` &then=`Tel.: [[+Mobil]]<br />`]]
[[If? &subject=`[[+Fax]]` &operator=`notempty` &then=`Fax: [[+Fax]]`]]
[[If? &subject=`[[+strasse]]` &operator=`notempty` &then=`</p>`]]
</div>
<p class="p-seperator2"></p>
[[If? &subject=`[[+email]]` &operator=`notempty` &then=`<span><a href="mailto://[[+email]]">E-Mail</a></span>`]]
[[If? &subject=`[[+URL]]` &operator=`notequal`&operand=`http://` &then=`<span><a href="[[+URL]]" class="external">Website</a></span>` ]]
[[If? &subject=`[[+content]]` &operator=`notequal`&operand=`` &then=`<span><a href="[[+id]]">mehr Informationen</a></span>` ]]
</div>
After reloading the page, the measurements show
QueryTime: 0.0000 s
Queries: 0
Total time: 8.5016 s
PHP parsing time: 8.5016 s
which is also too long for this amount of data.
Is Revo really so slow?