“Late Initialization” possibility
-
Hello,
We have a special plugin. It is for find the visitor source and arrange data for their origin. It is already integrated with WP Super Cache and W3TC as they were serving good hooks but I couldn’t find Litespeed cache options for that. I saw some message from Litespeed support talking about “litespeed_buffer_before” but couldn’t make it work.My code is basically something like below.
Thank you so much.##########
if($settings['cache_plugin_use']=='super_cache'){ $GLOBALS['wp_super_cache_late_init'] =1; }elseif($settings['cache_plugin_use']=='w3tc'){ if(function_exists('w3tc_config')){ $config = w3tc_config(); //echo '<pre>'; print_r($config); exit; if($config->get_boolean('pgcache.late_init') == false || $config->get_string( 'pgcache.engine' ) != 'file'){ $config->set( 'pgcache.engine', 'file' ); $config->set( 'pgcache.late_init', true ); $config->save(); } } }
##########
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘“Late Initialization” possibility’ is closed to new replies.