So you got the dreaded email of please optimize your site, or your site is loading slow, or why is the page giving 500 errors. There are several things that can cause these errors. Below I'll go over some things you can do to help in lowering those process limits to allow more traffic and less server load to focus on the important things, your customers.
Doing these two things will greatly increase your score in GTMetrix, especially WordPress!
The first and most easiest thing is always the first thing to be read when a site is loading and that is your .htaccess file. In the .htaccess file you will find all things that guide and tell your site to load from how to send the data to the file that will guide it all. Pasting this in the top of your .htaccess will allow the site to reduce server load, send data faster, and place the load on the customer instead of the server.
Secondly, if you are using WordPress to host your site, it is strongly recommended to use W3 Total Cache. It is more effective than WP Rocket and WP Supercache.
Step 1: Go to the .htaccess file and add this to the top of the file:
Step 2: Setting W3 Total Cache
- Go to your WP-Admin
- Go to Plugins
- Click Add New
- Search W3 Total Cache
- Click Install
- At the top of WP-Admin, you will see Performance
- Click General Settings
- Select Page Cache Enable
- Select Page Cache Method "Disk Enhanced"
- Minify mode "Auto"
- Minify Cache Method "Disk"
- Database Cache "Enable"
- Database Method "Disk"
- Browser Cache: "Enable"
- CDN "Enable"
- CDN Type "Stackpath"
- Enable Lazy Load Images (Click the check box)
- Click Save Settings & Purge Caches