thinkphp5.1ÔõÑù¹Ø±Õ»º´æ
thinkphp5.1¹Ø±Õ»º´æµÄÒªÁ죺1¡¢ÕÒµ½¡°\ThinkPHP\Common\convention.php¡±ºÍ¡°\ThinkPHP\Common\debug.php¡±Îļþ£»2¡¢ÔÚdebug.phpÖÐÐÞ¸ÄÄÚÈÝΪ¡°’TMPL_CACHE_ON’=>false,¡±£»3¡¢ÔÚconvention.phpÖÐÐÞ¸ÄÄÚÈÝΪ¡°’ACTION_CACHE_ON’ => false,¡±¡£
Thinkphp¿ª·¢Ê±¹Ø±Õ»º´æ£º
ÒòÔÚ¿ª·¢ÖÐÐèÒª¾³£ÐÞ¸Ä,´Ó¶øÒª¾³£É¾³ý»º´æ,²Å»ª¿´µ½Ð§¹û¡£
ÒÔÊÇΪÁË¿ª·¢µÄÀû±ã,¿ÉÒÔ°Ñ»º´æ¸øÈ¥³ý¡£
ÕÒµ½\ThinkPHP\Common\convention.phpºÍ\ThinkPHP\Common\debug.php
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
·¿ªÕâÁ½¸öÎļþÕÒµ½ÄãÏëÒªµÄÉèÖü´¿É¡£
debug.phpÖÐ
'TMPL_CACHE_ON'=>false, // ĬÈÏ¿ªÆôÄ£°å»º´æ
µÇ¼ºó¸´ÖÆ
convention.phpÖÐ’
TMPL_CACHE_ON' => false, // ĬÈÏ¿ªÆôÄ£°å±àÒ뻺´æ false µÄ»°Ã¿´Î¶¼ÖØбàÒëÄ£°å 'ACTION_CACHE_ON' => false, // ĬÈϹرÕAction »º´æ 'HTML_CACHE_ON' => false, // ĬÈϹرվ²Ì¬»º´æ
µÇ¼ºó¸´ÖÆ
ThinkPHPÔõô¹Ø±ÕËùÓлº´æ?
APP_DEBUG=>true DB_FIELD_CACHE=>false HTML_CACHE_ON=>false
µÇ¼ºó¸´ÖÆ
thinkphpÊÇʲô
thinkphpÊôÓÚÒ»ÖÖÃâ·ÑµÄ¿ª·¢¿ò¼Ü£¬Äܹ»ÓÃÓÚ¿ª·¢Ç°¶ËÍøÒ³£¬×îÔçthinkphpÊÇΪÁ˼ò»¯¿ª·¢¶ø±¬·¢µÄ£¬thinkphpͬʱҲÊÇ×ñÕÕApache2ÐÒ飬×î³õÊÇ´ÓStrutsÑݱä¹ýÀ´£¬Ò²°ÑÍâÑóһЩºÃµÄ¿ò¼Üģʽ¾ÙÐÐʹÓã¬Ê¹ÓÃÃæÏò¹¤¾ßµÄ¿ª·¢½á¹¹£¬¼æÈÝÁËÐí¶à±êÇ©¿âµÈģʽ£¬ËüÄܹ»¸üÀû±ãºÍ¿ì½ÝµÄ¿ª·¢ºÍ°²ÅÅÓ¦Óã¬ËäÈ»²»µ«½öÊÇÆóÒµ¼¶Ó¦Óã¬ÈκÎphpÓ¦Óÿª·¢¶¼¿ÉÒÔ´ÓthinkphpµÄ¼òÆÓ¡¢¼æÈݺͿìËÙµÄÌØÕ÷ÖÐÊÜÒæ¡£
ÒÔÉϾÍÊÇthinkphp5.1ÔõÑù¹Ø±Õ»º´æµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡