Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to speed up your CakePHP Website

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 274
    Comment on it

    Hello Readers,

    These are some techniques to speed up the cakephp website:-

    1. Upgrade versions regularly
    When you work on cakephp website.You need to upgrade your Cake website to the latest version in order to keep it performing at its best.

    2. Disable Debug Mode
    Make sure you are on a zero debug mode. The path to change is:app/config/core.php Configure::write (debug, 2) to Configure::write (debug, 0). This will hide all the error messages and refresh model caches allowing the page to load quickly.

    3. Disable Recursive Find Statements
    Sometimes the sites are crash to avoid such thing happening to your sites you need to 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
    Means Optimize the Query



 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: