Mat Mushroom
-
Hi,
during implementation of dymanic content with Super Cache now receive a error message: “Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers…”
This is the code (where I replaced two cache-tags-strings. Can somebody help me?
greetz,
Mat
<?php function dynamic_data_safety( $safety ) { return 1; } add_cacheaction( 'wpsc_cachedata_safety', 'dynamic_data_safety' ); function dynamic_radar( &$cachedata) { $shopbox = (string) do_shortcode("[su_radarbox2]"); $partybox = (string) do_shortcode("[su_radarbox2 mode='party']"); $cachedata = str_replace( "{SHOPRADAR2015}", $shopbox, $cachedata ); $cachedata = str_replace( "{PARTYRADAR2015}", $partybox, $cachedata ); return $cachedata; } add_cacheaction( 'wpsc_cachedata', 'dynamic_radar', 5 );
- The topic ‘Mat Mushroom’ is closed to new replies.