Note: You must take a backup of your site and database before following this step. Better be safe than sorry.
Here are some tips on how to speed up your WordPress website:
- Shared hosting v/s Dedicated hosting: If you have more data or higher traffic on your Directory website then instead of shared hosting, we recommend using a dedicated server. Directory is an application-like theme and as soon as your site gets traction both content and traffic on your website will increase simultaneously so your website will need more server resources for better performance. If you are on a shared hosting your server resources will be shared with other websites on the same server so you will get limited resources for your website which will ultimately result in an underperforming website. On the other hand, if you go with a dedicated server all server resources will be available for your website and it will perform much better.
- Remove plugins: Please visit the plugins page in your WordPress admin and remove any and all unnecessary plugins which is not really contributing to your site.
- Optimize DB: If your site is more than a few months old, you should optimize your site database with plugins like RGV optimize and Simple optimizer or likes that will remove unnecessary junk from your site such as spam comments, post revisions, etc. which will make your site database perform better
- Limit post revisions: Most users don’t need each version of post revisions. Here is a good article on how to disable or limit it.
- Spam Comments – If your spam comment receipts are in high numbers then all the spam comments should be deleted at regular intervals by just going to wp-admin > Comments >Spam >Empty Spam (button) otherwise you may end up with a compromise in the site speed!
- Lack of Image optimization – It is very important to upload the just perfect sized image & that too with specific formats like “jpg, png etc”.
- W3 Cache plugin: This will really make your site faster. We highly recommend using this plugin which will cache your site and serve pages really faster.
- Cloud flare: Use cloud flare and it will improvise your site performance further. Its free!
- CDN: Most of the popular sites nowadays use CDN services such as MaxCDN or likes to deliver content from their site (we at Templatic use it too)
- Memory Limit: Many times increase in the memory limit variable of the php.ini file also helps the user in loading the site faster.
- Better WordPress Minify: It compresses and combines CSS and JS scripts on-site to improve the page load time. It can be downloaded from here. When this plugin is active, go to its settings > Manage enqueued Files. Select three files mentioned below:
– google-clustering
– location_script
– Google-maps-API script Select them and choose action “Say at position”. Save the Changes. - Google Page Speed: If you really wish to go into detail, Google Page Speed is a very good site analysis tool that will tell you exactly how you can improve your site speed.
- For the error: The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources (80997)
This is the code you need to add in your .htaccess file:## EXPIRES CACHING ##<IfModule mod_expires.c>ExpiresActive OnExpiresByType image/jpg “access plus 1 year”ExpiresByType image/jpeg “access plus 1 year”ExpiresByType image/gif “access plus 1 year”ExpiresByType image/png “access plus 1 year”ExpiresByType text/css “access plus 1 month”ExpiresByType application/pdf “access plus 1 month”ExpiresByType text/x-javascript “access plus 1 month”ExpiresByType application/x-shockwave-flash “access plus 1 month”ExpiresByType image/x-icon “access plus 1 year”ExpiresDefault “access plus 2 days”</IfModule>## EXPIRES CACHING ##