Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Discussion on speedUp CakePHP Website

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 427
    Comment on it

    Hi Reader's,
    Welcome to FindNerd,today we are going to discuss speed up our CakePHP Website.

    When implementing any web application in CakePHP sometimes we observe the application speed very slow and data is not coming in view page and it take's a lot of time to load a page on the server.

     

    So to speed up of your website you have to follow some basic techniques to speed up the cakephp website:-

    A:- Upgrade versions regularly:- CakePHP is an MVC framework and it has a lot of versions. So when we are implementing any website in CakePHP, we need to upgrade our CakePHP website to the latest version in order to keep its performance at its best.


    B:- Disable Debug Mode: Debug mode is used for finding and showing error in our website. If we want to show error message in our website then we have to configure a debug mode "2".

    we can see below example for better understanding.

    The path of file

    app/config/core.php

    Configure::write('debug', 2);

    If you don't want to show error message on a website then configure a debug mode "0".

    Configure::write('debug', 0);

     

    C:- Disable Recursive Find Statements: We can see that sometimes our site crashes. So for avoiding such thing, we need to make sure that the default recursion is zero(0).

    we can see below example for better understanding.

    The path of file

    app/Model/AppModel.php

    
    <?php
        class AppModel extends Model {
         public $recursive = -1;
        }
    ?>

     

    D:- Optimize the Query: It is a function of many relational database management systems and it is an attempt to determe the most efficient way to execute a given query.

    We should use a query for getting records from the database which we really need. we also avoid functions on the Left-Hand-Side of the Operator.

    I hope this blog will help you.

 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: