Page fragmentation and shortcodes
-
Hi guys,
I have read few posts as well as the guidelines as published at: https://github.com/W3EDGE/w3-total-cache/wiki/FAQ:-Developers#how-does-page-fragment-cache-work
But it seems I cannot make this work.
On my front page I use a geo tagged map, which refreshed upon used accept to share their location.
I would like to cache it all but the shortcodes I use for MAP and SEARCH RESULTS.
I followed your instructions:
1. Set DISK:basic in Page Cache
2. Set mfunc and mfclude in Minify – comments
3. Set rule define(‘W3TC_DYNAMIC_SECURITY’, ‘FRAGMENT_CACHING’); in wp-config
4. Set rule
<!–mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> –>
echo do_shortcode(‘[gmw map=”2″]’);
echo do_shortcode(‘[gmw search_results=”2″]’);
<!–/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> –>
5. Set ‘late initialization’So far it seems the rules is not effective and my geo tagged results and maps are cached.
Any idea?
Thanks
- The topic ‘Page fragmentation and shortcodes’ is closed to new replies.