I’m looking for a little clarification... and caching is subtle...
So, when you cache the output of a Snippet, does that mean that uncached calls to that Snippet return the same data on every page where it’s called?
E.g.
Page 1 Page 2
[[Cached Snippet]] <--- Cached Snippet Output-----> [[Cached Snippet]]
Or Like this?
Page 1: [[Cached Snippet]] <---- Cached Snippet Output v1
Page 2: [[Cached Snippet]] <---- Cached Snippet Output v2
Will they both get the same info? Or is there a version of the cached Snippet that’s different for each page? And what if the Snippet calls are different? E.g. if startId=1 and startId=2, they’d have to have separate cache files, right?
And if a page is cached, but the Snippet isn’t, then does it more or less have the net effect of simplifying the substitution used? E.g. the cached page will be served to the browser without hitting the database at all, but if you have an uncached Snippet on the page, then MOST of the page will be served from the cache (and not from the db), but the Snippet will be executed on rendering, right? Or does the page caching override the Snippet caching? I.e. if the page is cached, does it just take a snapshot of the Snippet output and stow it away in the cached version of the page? I’m pretty sure it doesn’t, but I wanted to clarify.
Thanks!