WordPress the world’s No. 1 CMS (content management system) is changing the Scenario of Blogging. 69 out of 100 Bloggers use WordPress to work at backend. It provides almost everything whatever is required for Blogging. But my main motive of writing this article is How far you know about WordPress. Here I am raising very basic question on WordPress. I hope these questions would definitely help you to enhance your knowledge on WordPress.
How WordPress manages connection pool?
The one of the main important things that every WordPress developer and blogger must know. By default the connection pool allows 30 visitors at a time. What happens if more than 30 visitors come to your website (Blog)? They will suffer from HTTP errors like HTTP 404 error or ERROR 501. So avoid this problem WordPress manages connection pool so that more than 1000 visitors can request for the same Web page on your blog. There is one plugin you are using i.e. WP-CACHE which is used to manage this issue.
What is WordPress Architecture?
The one and very important thing of any project or any module is its architecture. Architecture is the structured design through which we come to know how modules are interconnected. If you are not aware of how the WordPress manages blog, Publish articles, handling plugins and many more than you have gained nothing from blogging. Click on the Image to enlarge.
Connection string is the key for connecting to the database. The Question here is how WordPress manages Connection string of our blog connection with Database. The answer of this query is when we install WordPress on the server .It automatically fetches the username and password and server name and generate connection string the default connection string is:
$wpdb = newwpdb(db_user, db_passwd, db_name, db_host);
After Connection string the main question is how WordPress extract our data from database. What are the Database queries used by WordPress to manage blogs.Here basic example of SELECT query is shown as an example used by WordPress to fetch Data from Database.
php $querystr = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'tag' AND wpostmeta.meta_value = 'email' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' ORDER BY wposts.post_date DESC "; $pageposts = $wpdb->get_results($querystr, OBJECT); ?>
How much code of lines in WordPress?
One of the most interesting facts that you will be amazed to know is that WordPress contains more than 2,00000 lines of code. in which
- 1,54683 lines of code are in PHP
- 19,237 in CSS
- 9734 in HTML
- 44 in XML
I hope you enjoy this basic information on WordPress. I consider this info as basic because there still lot of things to learn about WordPress. Don’t forget to bookmark and share this post.
Subscribe to Download WordPress Guide Worth $99