Answer the question
In order to leave comments, you need to log in
How do you know when to call your snippet cached and when not cached?
There are snippets that MUST be called uncached (with an exclamation mark at the beginning). AjaxForm, for example, or pdoPage. What about your snippets? When should I call my snippet cached and when not? Or does it matter here? I after all caching any did not write.
pdoResources returns a new result each time. Because the resources are different. And placeholders will have different values. Why is it called cached (no exclamation mark)? This can be seen on the documentation page in the examples:
https://docs.modx.pro/en/components/pdotools/snipp...
But pdoPage is not cached (with an exclamation mark):
https://docs.modx.pro/komponentyi/ pdotools/snippet...
I don't see the logic by which I could understand how I should call my snippets.
Answer the question
In order to leave comments, you need to log in
pdoResources returns a new result each time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question