@@ -8,7 +8,9 @@ class Vivio_Swift_Cache_Menu extends Vivio_Swift_Admin_Messages
var$menu_tabs_handler=array(
'tab1'=>'render_tab1',
'tab2'=>'render_tab2'
'tab2'=>'render_tab2',
'tab3'=>'render_tab3',
'tab4'=>'render_tab4'
);
function__construct()
...
...
@@ -19,8 +21,10 @@ class Vivio_Swift_Cache_Menu extends Vivio_Swift_Admin_Messages
functionset_menu_tabs()
{
$this->menu_tabs=array(
'tab1'=>__('Settings','vivio-swift'),
'tab2'=>__('Reports','vivio-swift'),
'tab1'=>__('Simple Settings','vivio-swift'),
'tab2'=>__('Advanced Settings','vivio-swift'),
'tab3'=>__('Exclusions','vivio-swift'),
'tab4'=>__('Reports','vivio-swift'),
);
}
...
...
@@ -69,10 +73,6 @@ class Vivio_Swift_Cache_Menu extends Vivio_Swift_Admin_Messages
functionrender_tab1()
{
echo'<div class="message_standard">';
echo'<p>'.__("By caching PHP to it's fully rendered HTML, you reduce processing load and help all supplimentary caching services like memcache, CDN's, and even browsers, run faster.",'vivio-swift').'</p>';
echo'</div>';
global$vivio_swift_global;
// process cache settings
...
...
@@ -82,14 +82,21 @@ class Vivio_Swift_Cache_Menu extends Vivio_Swift_Admin_Messages
<spanclass="description"><?php_e('Check this to remove version number query strings from static assets so they can be cached by more systems.','vivio-swift');?></span>
<spanclass="description"><?php_e("Enable a process that will cache your site at regular intervals (based on when they're set to expire).",'vivio-swift');?></span>
<spanclass="description"><?php_e('Check this to enable certain plugin actions to be logged and viewable in the Vivio Swift Log Viewer.','vivio-swift');?></span>
// if we're using permalinks, use the permalink uri
array_push($urls,$post_permalink);
// log it
if($debug){
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::create_preload_cache() - Added POST URI: ".$post_permalink,0);
}
}else{
// otherwise just log it as incompatible
if($debug){
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::create_preload_cache() - Failed to get Permalink for Post ID:".$p->ID."[SKIPPING]",4);
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::create_preload_cache() - Failed to get Permalink for Post ID:".$p->ID."[SKIPPING]",4);
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::create_preload_cache() - Failed to get Permalink for Post ID:".$p->ID."[SKIPPING]",4);
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::cache_url_with_agent() - No response when attempting to cache URL:".$url."[SKIPPING]", 4);
}
} elseif ( is_wp_error($response) ){
// received error object from wp_remote_get()
// log the problem
if ($debug){
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::cache_url_with_agent() - Received error response object when attempting to cache URL:".$url."[SKIPPING]", 4);
$vivio_swift_global->debug_logger->log_debug("Vivio_Swift_Cache::cache_url_with_agent() - Received bad response code when attempting to cache URL:".$url."[SKIPPING]", 4);