Hi attiqfsd. There are any number of reasons why your site might be “slow”. A couple of places to start that will provide some recommendations:
http://tools.pingdom.com/
http://www.webpagetest.org/
https://gtmetrix.com/
You might also check this google search results for additional resources.
I have tried gtmetrix and pingdom tools with all plugins deactivated and twenty sixteen theme enabled and My site loaded in 7 seconds which is completely unacceptable for a blog with very less traffic.
I have also tried to clone my site to another web hosting provider on different url and It was not much different there as well.
AFAIK the database could be the culprit as I have tried ruling out possibilities of plugins and theme.
Can you tell me how can I refresh the database of my website without loosing the content? I can keep wp-content and wp-config.php but dont know much about database.
PS: I have tried using database optimizing plugins and deleting post revisions without any improvement in the speeds.
Did you look at the Performance Grade and Page Analysis on pingdom, and the Page Speed and YSlow pages on gtmetrix? Those will tell you what’s causing your site to take that long to load.
Yes on both pingdom and GTMetrix the initial waiting time is like 4+ seconds. Once the data start downloading it loads up quickly.
I have tried installing a fresh wordpress install with same plugins, theme, Media and posts on same hosting account as a subdomain and that installation is working great.
What is the slow URL? The subdomain URL? Other than the URL, what else is different? Are they both on the same server? Using the same .htaccess file? What does the host say about the speed difference?
Here’s an optimization page from the Codex:
http://codex.ww.wp.xz.cn/WordPress_Optimization
Here’s a plugin that might help with setting up a new database:
https://ww.wp.xz.cn/plugins/wordpress-importer/
Here’s a related tutorial:
https://www.elegantthemes.com/blog/tips-tricks/import-export-wordpress-website