DESIGNfromWITHIN / Flexibility

Flexibility - Fully functional MODX Revolution website. Quickstart projects by creating a fully working MODX Revolution website with just one package. Need MODX Revolution 2.2+
http://flexibilitymodx.com/
Other
35 stars 6 forks source link

Use less If-snippet-calls and cache! #16

Closed anselmh closed 12 years ago

anselmh commented 13 years ago

You really should use cached snippet calls and in general much less If-snippet-calls. You can do way more performant with just TV default values etc.

DESIGNfromWITHIN commented 13 years ago

Yes you are right of course! Was just learing the 'if' snippets and might have overdone it a bit. Will give this a thinkover.

anselmh commented 13 years ago

You generally call all snippets uncached. That's a performance bottleneck you should fix. Mark H. has written in rtfm about a list-TV for colors I think. Much better than with IF-call. :)

Mark-H commented 13 years ago

What I wrote was for related pages, but I guess the methodology would be the same :) http://rtfm.modx.com/display/revolution20/Creating+a+multi-select+box+for+related+pages+in+your+template

(And no, I'm not shadowing you guys but this just happened to be listed on my github repository, I swear! :P)

anselmh commented 13 years ago

:)

DESIGNfromWITHIN commented 13 years ago

haha you are just our biggest fan!