I was just about to ask the same question… I can’t find anything in the FAQ about fragment caching and how to set it up. Got a mail from Frederick saying that it is possible.
All I found in the help was this ( and this was after I posted this query here on the forum. :
Edit your templates to with the following syntax to ensure that dynamic features remain so:
http://screencast.com/t/xJ7I71nl
The only think I am unsure of is if this breaks down gracefully if W3 cache is for some reason disabled.
Example 1:
<!– mfunc any PHP code –><!– /mfunc –>
Example 2:
<!– mfunc –>any PHP code<!– /mfunc –>
Example 3:
<!–MFUNC –>
echo rand();
<!–/mfunc –>
Example 4:
<!– mclude path/to/file.php –><!– /mclude –>
Example 5:
<!– mclude –>path/to/file.php<!– /mclude –>
I do this:
<body>
<!– mfunc –>
$visitors_online = new usersOnline();
$currentlyonline = $visitors_online->count_users();
<!–/mfunc –>
…
</body>
But it’s just showing a blank page.
Yeah whats going between our tags is a little random in terms of what comes out. We have the impression that either W3 is a little flaky in this fragmented caching area or we are missing some other config item.
What are the errors in your error logs from your tests?