Quantcast
Viewing all articles
Browse latest Browse all 19292

christopheran on "[Plugin: W3 Total Cache] Need help: should this mfunc/mclude situation work?"

Should this work?

I include a file using mclude:

<!-- mclude secretcode -->path/to/file.php<!-- /mclude secretcode -->

and in that file, I set a variable that changes, ie: $traffic_count="233";

Then later down on the page, use that variable in an mfunc:

<!-- mfunc secretcode -->echo $traffic_count;<!-- /mfunc secretcode -->

Should that work and be dynamic when using page-cache and a cdn? Or am I misunderstanding something?

Thanks,

Chris

http://wordpress.org/extend/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>