. . .

Steps required to change project to production mode

Published: October 8, 2010

On This Page

    Step 1: In config/main.php, add following element to "components" array

    'cache'=>array(
                'class'=>'system.caching.CApcCache',
            ),

     

    Step2: In config/main.php, add following element to " components[‘db’] " array

    'schemaCachingDuration' => 3600

     

    Step 3: Comment out the following line of index.php

    defined('YII_DEBUG') or define('YII_DEBUG',true);

     

    Step 4: Replace following line in index.php

    $yii=dirname(__FILE__).'/../yii/framework/yii.php';

    with

    $yii=dirname(__FILE__).'/../yii/framework/yiilite.php';

     i.e. instead of including yii.php from framework, include yiilite.php

    Don't forget to share this post

      Let's Build Digital Excellence Together


      • Cost Efficient Solutions.
      • Minimal Timelines.
      • Effective Communication.
      • High Quality Standards.
      • Lifetime Support.
      • Transparent Execution.
      • 24/7 Availability.
      • Scalable Teams.

      Join Our 200+ Happy Clients Across Globe


      Free Consultation.

        Do you need tech help of your startup/business? Experts from our team will get in touch with you.

        Please do not post jobs/internships inquiries here.