I found out that if snippet is called uncached, a placeholder it creates isnt working.
Example
<?php
$modx->setPlaceholder('test','test');
?>
if the snippet is called [[]] cached, the placeholder [+test+] outputs ’test’. If we call it [!!] uncached - the placeholder outputs nothing. Am I doing something wrong? (MODx 0.9.6.1)
-
MODX Staff
- 10,725 Posts
If the page is cacheable it will only work the first time, then the placeholder is cached regardless of the snippet tags.
If the page is not cacheable, it should work either way.
yeah, Jason, exactly - it works only the first time. I have no chance to uncache the whole page.. so I have to think of another workaround.
Thanks!