-
☆ A M B ☆
- 453 Posts
- Can you write your call for MaxiGallery?
- Try using the latest version of MaxiGallery.
BASE - Web Design Studio
MODX Ambassador
Website
I had the same problem. I think it has to do with caching because if I had the manager open in another window (in another browser), if I cleared the site cache before every action, things worked ok.
I finally solved it by trial and error setting the page to cached or uncached and changing the snippet call back and forth between [[ ]] and [! !]. I believe an uncached page and a [[MaxiGalllery ]] call worked for me.
I think things were more complicated for me when some pages call a snippet directly and others call it by having a chunk that contains the snippet along with some nested chunks and snippets.
There seems to be some weirdness in MODx when it comes to the cache and nested snippets and chunks.
Hope this helps,
Bob
Yes, MaxiGallery needs to run uncached, so use [!MaxiGallery!] when calling it. I suggest to read this:
http://www.modxcms.com/document-caching.html
There is some weirdness in MODx when using nested snippets and chunks like Bob said. I believe you have to alter the caching on each level, so if parent is [!uncached!] nested one must be [[cached]].. This weirdness will be sorted in 0.9.7 btw.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Quote from: doze at May 15, 2007, 01:45 PM
Yes, MaxiGallery needs to run uncached, so use [!MaxiGallery!] when calling it.
doze,
I thought I read earlier that I should use [[MaxiGallery]] when calling it on an uncached page.
I ended up doing it that way and it seems to work.
Also, I understand about reversing the caching of nested snippet calls. Does this also apply to snippets contained in chunks?
If a non-cached page contains a chunk that contains a snippet -- does [[snip]] make the snippet call cached or uncached?
Man, I hope 0.9.7 gets here soon. I’ve spent about a week wrestling with cache issues and things I thought
might be cache issues.
Bob
Quote from: BobRay at May 15, 2007, 05:24 PM
I thought I read earlier that I should use [[MaxiGallery]] when calling it on an uncached page.
Yes, at some point there was a bug in modx that if snippet was run uncached on a uncached page, it did not register javascripts. But this should be fixed.
Quote from: BobRay at May 15, 2007, 05:24 PM
If a non-cached page contains a chunk that contains a snippet -- does [[snip]] make the snippet call cached or uncached?
If document is uncached, everything in it will be uncached.
Quote from: BobRay at May 15, 2007, 05:24 PM
Man, I hope 0.9.7 gets here soon. I’ve spent about a week wrestling with cache issues and things I thought might be cache issues.
Keep wrestling, 0.9.7 has still long way to go
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
If document is uncached, everything in it will be uncached.
Good to know.
Thx,
Bob