Loading time of the website plays very important role in internet world.Slow loading time of website will cause uninterrupted services and the good loading speed website serves as an indicator of how well things are doing, it will help you to gain more visitors,customsers, services etc.
We can use some customizations tips by which we can speed up cakePHP website.
1-Upgrade cakePHP versions regularly
You need to update your CakePHP version to the latest version in order to keep it performing at its best. Latest versions have latest features and also works fast than old versions.
2- Disable Debug Mode
Put your Debug mode to 0. Its for developer use only for making it 2. Putting it 0 will hide all the error messages and delete all the model caches. It will help to make your website work faster.
3-Disable Recursive Find Statements
make sure that the Default Recursion is zero by applying the following code in app/Model/AppModel.php:
<?php
class AppModel extends Model {
public $recursive = -1;
}
4-Cache Query Results
Optimizing the queries will get the great results. Applying the containable class will keep you doing it right and allow you to cache database queries for better end results.
5-Removing Apache and Installing Nginx
Using Nginx instead of Apache is much better because it helps the website to get the good performance and give the website tha capacity to get the heavy traffic on internet. Nginx offers you with just the most needed options that offer the best way to combat speed issues far better than that offered by a million of options in Apache.
0 Comment(s)