=====
MODX Revolution 2.2.2-pl (traditional)
PHP Version 5.2.17
5.1.41-3ubuntu12.10
=====
Hallo. I have som strange problems with chunks/snippets and modifiers.
----------------------
This chunk works:
[[$formtop]]
Not this way:
[[*id:is=`1`:then=`[[$formtop]]`]]
----------------------
The chunk "formtop" is a form built with FormIt.
And the snippets to FormIt in "formtop" gets called uncached like this
[[!FormIt?
//... //
]]
It seems that I can´t call on a chunk cached if there is a uncached call to a snippet in the chunk.
• [[*id:is=`1`:then=`[[$formtop]]`]] + [[!FormIt? //... // ]] = Don´work
• [[!*id:is=`1`:then=`[[$formtop]]`]] + [[!FormIt? //... // ]] = Work
• [[!*id:is=`1`:then=`[[$formtop]]`]] + [[FormIt? //... // ]] = Work
• [[*id:is=`1`:then=`[[$formtop]]`]] + [[FormIt? //... // ]] = Work
----------------------
Has anyone seen this issue before. Should I be able to call chunks uncached that has cached call in them?
Best regards
Micke
Micke Pigment
Quote from: pigment at May 18, 2012, 02:57 AM=====
MODX Revolution 2.2.2-pl (traditional)
PHP Version 5.2.17
5.1.41-3ubuntu12.10
=====
Hallo. I have som strange problems with chunks/snippets and modifiers.
----------------------
This chunk works:
Not this way:
[[*id:is=`1`:then=`[[$formtop]]`]]
----------------------
The chunk "formtop" is a form built with FormIt.
And the snippets to FormIt in "formtop" gets called uncached like this
It seems that I can´t call on a chunk cached if there is a uncached call to a snippet in the chunk.
• [[*id:is=`1`:then=`[[$formtop]]`]]
+ = Don´work
• [[!*id:is=`1`:then=`[[$formtop]]`]]
+ = Work
• [[!*id:is=`1`:then=`[[$formtop]]`]]
+ = Work
• [[*id:is=`1`:then=`[[$formtop]]`]]
+ = Work
----------------------
Has anyone seen this issue before. Should I be able to call chunks uncached that has cached call in them?
Best regards
Micke
-
☆ A M B ☆
- 3,112 Posts
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
MODX Staff
- 10,725 Posts
Just put any MODX tags within code tags and it will preserve it...
FWIW, as a general rule of thumb, you should only call things non-cacheable that you specifically want to be evaluated each and every time.