I am having partial success... this link shows 2 pages, one returning a cached snippet (site stats). The other page, a cached and uncached snippet (on this day).
Using the API $etomite->evalSnippets I can evaluate cached snippet only. Uncached snippets only return the [!calling_tags!].
I have tried upping the snippet parses in the index.php file. It makes no difference.
Any ideas what else I could try?
I noticed that outputContent() checks for the non-cached snippets but it is well ingrained in the etomite output. Is there an easier way to evaluate non-cached snippets from a string?
This is the code I am using at the moment:
//evaluate chunks
$evalHTML=$etomite->mergeHTMLSnippetsContent($pageData['content']);
//replace uncached snippet tags
if(strpos($evalHTML, '[!')>-1) {
$out = str_replace('[!', '[[', $evalHTML);
$out = str_replace('!]', ']]', $evalHTML);
}
//evaluate snippets
$evalData=$etomite->evalSnippets($evalHTML);
//getPage content, make it xml safe and set the length to be returned
$safeContent=htmlentities(substr($evalData,0,$length));
Edited by Cris D., 07 November 2007 - 11:35 AM.











