function accept_POST($post) { if (isset($post['create_index'])) { FeedWordPress::create_guid_index(); $this->updated = __('guid column index created on database table.'); } if (isset($post['remove_index'])) { FeedWordPress::remove_guid_index(); $this->updated = __('guid column index removed from database table.'); } if (isset($post['clear_cache'])) { $N = FeedWordPress::clear_cache(); $feeds = $N == 1 ? __("feed") : __("feeds"); $this->updated = sprintf(__("Cleared %d cached %s from WordPress database."), $N, $feeds); } }
function accept_POST($post) { if (isset($post['create_index'])) { FeedWordPress::create_guid_index(); $this->updated = __('guid column index created on database table.'); } if (isset($post['remove_index'])) { FeedWordPress::remove_guid_index(); $this->updated = __('guid column index removed from database table.'); } if (isset($post['clear_cache'])) { $N = FeedWordPress::clear_cache(); $feeds = $N == 1 ? __("feed") : __("feeds"); $this->updated = sprintf(__("Cleared %d cached %s from WordPress database."), $N, $feeds); } if (isset($post['optimize_in'])) { update_option('feedwordpress_optimize_in_clauses', true); $this->updated = sprintf(__("Enabled optimizing inefficient IN clauses in SQL queries.")); } elseif (isset($post['optimize_out'])) { update_option('feedwordpress_optimize_in_clauses', false); $this->updated = sprintf(__("Disabled optimizing inefficient IN clauses in SQL queries.")); } }