E
E
eugene1592020-07-25 23:08:54
MODX
eugene159, 2020-07-25 23:08:54

If I call a snippet (inner) from a chunk that is called by another snippet (outer), how will caching the inner work?

I am displaying product cards via pdoResources. Each card calls a snippet that returns certain information.
Do I need to call this internal snippet uncached (with an exclamation mark) or can it be cached?

As far as I know, caching works for the resource, not for the card. Therefore, it is necessary to call uncached - so that the information of each card is displayed correctly. I'm right?

Or maybe it does not affect anything at all, the main thing is the external snippet? In this case pdoResources. If so, should I call pdoResources cached or not in order to correctly display the information of each card?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question