thinkphp closing Cached Methods _php instance

Source: Internet
Author: User
Because it needs to be changed frequently in development, it is necessary to delete the cache frequently to see the effect.

So for the convenience of development, you can remove the cache.

1. Find \thinkphp\common\convention.php and \thinkphp\common\debug.php

2. Open these two files to find the settings you want.

In debug.php
Copy the Code code as follows:
' tmpl_cache_on ' =>false,//Open template cache by default

convention.php in '
Copy the Code code as follows:
Tmpl_cache_on ' = False,//default to turn on the template compilation cache false to recompile the template every time

' action_cache_on ' = false,//close ACTION cache by default

' html_cache_on ' = false,//default off static cache

thinkphp How do I close all caches? (Baidu knows the satisfactory answer)
Copy the Code code as follows:
App_debug=>true
Db_field_cache=>false
Html_cache_on=>false

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.