WordPress make too many unneeded queries in front page
-
WordPress make too many unneeded queries in front page
While doing some optimization to the front page of my site
I have printed out all the queries that being made by wordpress…
It printed out that he does all the posts printing preparation… without me wanting to print any mainblog post.
anyone knows how do i disable that function?ohh and I also found out that
members directory i think add every time the page reloads new row to the db of the rewrite ruleINSERT INTO wp_1_options (option_name,option_value,autoload) VALUES (‘rewrite_rules’, ‘a:118:{s:42:\”members/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$\”;s:26:\”index.php?pagename=members\”;s:34:\”members/([^/]+)/([^/]+)/([^/]+)/?$\”;s:26:\”index.php?pagename=members\”;s:26:\”members/([^/]+)/([^/]+)/?$\”;s:26:\”index.php?pagename=members\”;s:18:\”members/([^/]+)/?$\”;s:26:\”index.php?pagename=members\”;s:12:\”robots\\.txt$\”;s:18:\”index.php?robots=1\”;s:14:\”.*wp-atom.php$\”;s:19:\”index.php?feed=atom\”;s:13:\”.*wp-rdf.php$\”;s:18:\”index.php?feed=rdf\”;s:13:\”.*wp-rss.php$\”;s:18:\”index.php?feed=rss\”;s:14:\”.*wp-rss2.php$\”;s:19:\”index.php?feed=rss2\”;s:14:\”.*wp-feed.php$\”;s:19:\”index.php?feed=feed\”;s:22:\”.*wp-commentsrss2.php$\”;s:34:\”index.php?feed=rss2&withcomments=1\”;s:16:\”.*wp-signup.php$\”;s:21:\”index.php?signup=true\”;s:18:\”.*wp-activate.php$\”;s:23:\”index.php?activate=true\”;s:29:\”members/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:39:\”members/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:59:\”members/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:54:\”members/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:54:\”members/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:22:\”(members)/trackback/?$\”;s:35:\”index.php?pagename=$matches[1]&tb=1\”;s:42:\”(members)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:37:\”(members)/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:30:\”(members)/page/?([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&paged=$matches[2]\”;s:37:\”(members)/comment-page-([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&cpage=$matches[2]\”;s:22:\”(members)(/[0-9]+)?/?$\”;s:47:\”index.php?pagename=$matches[1]&page=$matches[2]\”;s:32:\”phone-page/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:42:\”phone-page/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:62:\”phone-page/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:57:\”phone-page/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:57:\”phone-page/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:25:\”(phone-page)/trackback/?$\”;s:35:\”index.php?pagename=$matches[1]&tb=1\”;s:45:\”(phone-page)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:40:\”(phone-page)/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:33:\”(phone-page)/page/?([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&paged=$matches[2]\”;s:40:\”(phone-page)/comment-page-([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&cpage=$matches[2]\”;s:25:\”(phone-page)(/[0-9]+)?/?$\”;s:47:\”index.php?pagename=$matches[1]&page=$matches[2]\”;s:27:\”forum/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:37:\”forum/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:57:\”forum/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”forum/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”forum/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:20:\”(forum)/trackback/?$\”;s:35:\”index.php?pagename=$matches[1]&tb=1\”;s:40:\”(forum)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:35:\”(forum)/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:28:\”(forum)/page/?([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&paged=$matches[2]\”;s:35:\”(forum)/comment-page-([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&cpage=$matches[2]\”;s:20:\”(forum)(/[0-9]+)?/?$\”;s:47:\”index.php?pagename=$matches[1]&page=$matches[2]\”;s:30:\”feedback/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:40:\”feedback/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:60:\”feedback/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:55:\”feedback/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:55:\”feedback/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:23:\”(feedback)/trackback/?$\”;s:35:\”index.php?pagename=$matches[1]&tb=1\”;s:43:\”(feedback)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:38:\”(feedback)/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:31:\”(feedback)/page/?([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&paged=$matches[2]\”;s:38:\”(feedback)/comment-page-([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&cpage=$matches[2]\”;s:23:\”(feedback)(/[0-9]+)?/?$\”;s:47:\”index.php?pagename=$matches[1]&page=$matches[2]\”;s:27:\”about/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:37:\”about/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:57:\”about/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”about/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”about/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:20:\”(about)/trackback/?$\”;s:35:\”index.php?pagename=$matches[1]&tb=1\”;s:40:\”(about)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:35:\”(about)/(feed|rdf|rss|rss2|atom)/?$\”;s:47:\”index.php?pagename=$matches[1]&feed=$matches[2]\”;s:28:\”(about)/page/?([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&paged=$matches[2]\”;s:35:\”(about)/comment-page-([0-9]{1,})/?$\”;s:48:\”index.php?pagename=$matches[1]&cpage=$matches[2]\”;s:20:\”(about)(/[0-9]+)?/?$\”;s:47:\”index.php?pagename=$matches[1]&page=$matches[2]\”;s:32:\”feed/(feed|rdf|rss|rss2|atom)/?$\”;s:27:\”index.php?&feed=$matches[1]\”;s:27:\”(feed|rdf|rss|rss2|atom)/?$\”;s:27:\”index.php?&feed=$matches[1]\”;s:20:\”page/?([0-9]{1,})/?$\”;s:28:\”index.php?&paged=$matches[1]\”;s:41:\”comments/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:42:\”index.php?&feed=$matches[1]&withcomments=1\”;s:36:\”comments/(feed|rdf|rss|rss2|atom)/?$\”;s:42:\”index.php?&feed=$matches[1]&withcomments=1\”;s:29:\”comments/page/?([0-9]{1,})/?$\”;s:28:\”index.php?&paged=$matches[1]\”;s:44:\”search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:40:\”index.php?s=$matches[1]&feed=$matches[2]\”;s:39:\”search/(.+)/(feed|rdf|rss|rss2|atom)/?$\”;s:40:\”index.php?s=$matches[1]&feed=$matches[2]\”;s:32:\”search/(.+)/page/?([0-9]{1,})/?$\”;s:41:\”index.php?s=$matches[1]&paged=$matches[2]\”;s:14:\”search/(.+)/?$\”;s:23:\”index.php?s=$matches[1]\”;s:47:\”category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:52:\”index.php?category_name=$matches[1]&feed=$matches[2]\”;s:42:\”category/(.+?)/(feed|rdf|rss|rss2|atom)/?$\”;s:52:\”index.php?category_name=$matches[1]&feed=$matches[2]\”;s:35:\”category/(.+?)/page/?([0-9]{1,})/?$\”;s:53:\”index.php?category_name=$matches[1]&paged=$matches[2]\”;s:17:\”category/(.+?)/?$\”;s:35:\”index.php?category_name=$matches[1]\”;s:42:\”tag/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:42:\”index.php?tag=$matches[1]&feed=$matches[2]\”;s:37:\”tag/(.+?)/(feed|rdf|rss|rss2|atom)/?$\”;s:42:\”index.php?tag=$matches[1]&feed=$matches[2]\”;s:30:\”tag/(.+?)/page/?([0-9]{1,})/?$\”;s:43:\”index.php?tag=$matches[1]&paged=$matches[2]\”;s:12:\”tag/(.+?)/?$\”;s:25:\”index.php?tag=$matches[1]\”;s:47:\”author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:50:\”index.php?author_name=$matches[1]&feed=$matches[2]\”;s:42:\”author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:50:\”index.php?author_name=$matches[1]&feed=$matches[2]\”;s:35:\”author/([^/]+)/page/?([0-9]{1,})/?$\”;s:51:\”index.php?author_name=$matches[1]&paged=$matches[2]\”;s:17:\”author/([^/]+)/?$\”;s:33:\”index.php?author_name=$matches[1]\”;s:69:\”([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:80:\”index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]\”;s:64:\”([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$\”;s:80:\”index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]\”;s:57:\”([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$\”;s:81:\”index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]\”;s:39:\”([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$\”;s:63:\”index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]\”;s:56:\”([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:64:\”index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]\”;s:51:\”([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$\”;s:64:\”index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]\”;s:44:\”([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$\”;s:65:\”index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]\”;s:26:\”([0-9]{4})/([0-9]{1,2})/?$\”;s:47:\”index.php?year=$matches[1]&monthnum=$matches[2]\”;s:43:\”([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:43:\”index.php?year=$matches[1]&feed=$matches[2]\”;s:38:\”([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$\”;s:43:\”index.php?year=$matches[1]&feed=$matches[2]\”;s:31:\”([0-9]{4})/page/?([0-9]{1,})/?$\”;s:44:\”index.php?year=$matches[1]&paged=$matches[2]\”;s:13:\”([0-9]{4})/?$\”;s:26:\”index.php?year=$matches[1]\”;s:27:\”[^/]+/attachment/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:37:\”[^/]+/attachment/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:57:\”[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:52:\”[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;s:20:\”([^/]+)/trackback/?$\”;s:31:\”index.php?name=$matches[1]&tb=1\”;s:40:\”([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:43:\”index.php?name=$matches[1]&feed=$matches[2]\”;s:35:\”([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:43:\”index.php?name=$matches[1]&feed=$matches[2]\”;s:28:\”([^/]+)/page/?([0-9]{1,})/?$\”;s:44:\”index.php?name=$matches[1]&paged=$matches[2]\”;s:35:\”([^/]+)/comment-page-([0-9]{1,})/?$\”;s:44:\”index.php?name=$matches[1]&cpage=$matches[2]\”;s:20:\”([^/]+)(/[0-9]+)?/?$\”;s:43:\”index.php?name=$matches[1]&page=$matches[2]\”;s:16:\”[^/]+/([^/]+)/?$\”;s:32:\”index.php?attachment=$matches[1]\”;s:26:\”[^/]+/([^/]+)/trackback/?$\”;s:37:\”index.php?attachment=$matches[1]&tb=1\”;s:46:\”[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:41:\”[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$\”;s:49:\”index.php?attachment=$matches[1]&feed=$matches[2]\”;s:41:\”[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$\”;s:50:\”index.php?attachment=$matches[1]&cpage=$matches[2]\”;}’, ‘yes’) ON DUPLICATE KEY UPDATE option_name = VALUES(option_name),option_value= VALUES(option_value),autoload= VALUES(autoload`)
is it the members directory plugin or its just the wordpress adds every reload the rewrite rules again and again and again?
thats a bug or is it a design flow?
why wordpress system needs to add the rewrite rules every time?
- The topic ‘WordPress make too many unneeded queries in front page’ is closed to new replies.