The test was on contact form without/with YiiBooster respectively. Both of cases without any cache, and for many times. Is it normal this behavior or may I do something wrong ? (I have tested and other actions too - they have the same results)
*The above time requests referred on basic request (index.php excluding loading javascript,css and images)
Or else – this worked for me – install the LESS extension, nodejs & lessc, then compile your CSS instead of letting the client process it. That way you can keep the debugging capability with a minimum loss of speed.
I did, without debug mode It’s much faster, If debug mode is disabled i dont see any differences (with or without booster). Also You can check if maybe asset manager force to copy assets every time You try to open any page.
In my logs with debug ‘Loading “bootstrap” application component’ takes about 1 sec and all site is loaded in about 1.2 sec, without debug all site is loaded in 0.2 sec.
You can check if You have in your congfig something like :
//defined('YII_DEBUG') or define('YII_DEBUG',true);
Because I have multi project nested in one, I modified the primary index.php but not the appropriate index.php of broject that used the Yiibooster therefore I didn’t see any differences
Obviusly the developer team set the Yiibooster to force copy all assets when Yii is on debug mode.
for example I found in bootstrap/components/Bootstrap.php lines 450-460
public function getAssetsUrl()
{
if (isset($this->_assetsUrl))
return $this->_assetsUrl;
else
{
$assetsPath = Yii::getPathOfAlias('bootstrap.assets');
$assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, YII_DEBUG);
return $this->_assetsUrl = $assetsUrl;
}
}
that forces the files of bootstrap/assets folder copy to application/assets folder when
About YiiBooster and Ext4Yii, may there are widgets has the one that not exist in other, right? In addition the one is open source and the other it is not…