public function writeHighLoadPage()
{
+ $site_path = get_home_path();
+ // Need to look for and remove the home page cache from WPSuper cache
+ $host_name = $_SERVER['HTTP_HOST'];
+
+ $search = glob( $site_path . "/wp-content/cache/supercache/$host_name/*.php" );
+
+ if ( $search ) {
+ foreach ( $search as $cache_file ) {
+ unlink( $cache_file );
+ }
+ }
+
// Setup the Smarty Engine
$smarty = new smartyTemplateSupport();
$viewPath = GLM_MEMBERS_EVENTS_PLUGIN_PATH . '/views';
$htmlOutput = $smarty->template->fetch( $viewFile );
// Write the file out
- $site_path = get_home_path();
file_put_contents( $site_path . 'HLP.html', $htmlOutput );
}