dispatch = 'feedwordpress_backend'; $this->filename = __FILE__; } function has_link () { return false; } function display () { global $wpdb, $wp_db_version, $fwp_path; global $fwp_post; if (FeedWordPress::needs_upgrade()) : fwp_upgrade_page(); return; endif; // If this is a POST, validate source and user credentials FeedWordPressCompatibility::validate_http_request(/*action=*/ 'feedwordpress_backend', /*capability=*/ 'manage_options'); if (strtoupper($_SERVER['REQUEST_METHOD'])=='POST') : $this->accept_POST($fwp_post); do_action('feedwordpress_admin_page_backend_save', $GLOBALS['fwp_post'], $this); endif; //////////////////////////////////////////////// // Prepare settings page /////////////////////// //////////////////////////////////////////////// $this->display_update_notice_if_updated('Back End'); $this->open_sheet('FeedWordPress Back End'); ?>
__('Performance'), 'diagnostics_box' => __('Diagnostics'), ); foreach ($boxes_by_methods as $method => $title) : fwp_add_meta_box( /*id=*/ 'feedwordpress_'.$method, /*title=*/ $title, /*callback=*/ array('FeedWordPressBackendPage', $method), /*page=*/ $this->meta_box_context(), /*context=*/ $this->meta_box_context() ); endforeach; do_action('feedwordpress_admin_page_backend_meta_boxes', $this); ?>
meta_box_context(), $this->meta_box_context(), $this); ?>
close_sheet(); } /* FeedWordPressBackendPage::display () */ function accept_POST ($post) { if (isset($post['submit']) or isset($post['save']) or isset($post['create_index']) or isset($post['clear_cache'])) : update_option('feedwordpress_update_logging', $post['update_logging']); update_option('feedwordpress_debug', $post['feedwordpress_debug']); $this->updated = true; // Default update message endif; if (isset($post['create_index'])) : FeedWordPress::create_guid_index(); $this->updated = __('Index created on database table.'); endif; if (isset($_POST['clear_cache'])) : FeedWordPress::clear_cache(); $this->updated = __("Cleared all cached feeds from WordPress database."); endif; } /* FeedWordPressBackendPage::accept_POST () */ /*static*/ function performance_box ($page, $box = NULL) { // Hey ho, let's go... ?>
Feed cache:

This will clear all cached copies of feed data from the WordPress database and force FeedWordPress to make a fresh scan for updates on syndicated feeds.

Guid index:

Creating this index may significantly improve performance on some large FeedWordPress installations.

Logging:
Debugging mode:

When debugging mode is ON, FeedWordPress displays many diagnostic error messages, warnings, and notices that are ordinarily suppressed, and turns off all caching of feeds. Use with caution: this setting is absolutely inappropriate for a production server.

display();