The 'route_check_cache' configuration item was not found in the application configuration file app.php
蒸蒸
蒸蒸 2021-10-28 10:33:47
0
4
820

The manual of tp5 says: V5.1.14 version starts to support turning on the route cache. Set it in the application configuration file app.php: 'route_check_cache' => true, then

my tp The version is 5.1.41, but the 'route_check_cache' configuration item cannot be found in app.php. What is the reason?

Manually adding 'route_check_cache' => true in app.php will not have any effect, right?

How can we know whether 'route_check_cache' => true works?

蒸蒸
蒸蒸

reply all (2)
雪了无痕

http://yl5p76q.cn/ Gongxi Yanfan Information Network Shuai

    iEfoam

    You first enable this configuration

    Then access it once

    Then modify a certain routing address to see if it can be accessed before accessing it?

    In fact, it’s okay to have a small number of routes It is also possible that if the file content changes, the routing file will be reloaded the next time it is accessed.

    This should be invisible. To obtain the route at the beginning of the framework, you have to trace it back to the bottom layer to print it

    • reply Thank you for providing an idea! I tried this method. After the route was modified, the previous route could no longer be accessed. Does that mean that the previous route was not cached? So, what's the problem? Is it the tp version? When installing tp, it is installed according to 5.1.0 (composer create-project topthink/think **** 5.1.0 --prefer-dist), However, when getting the version through {$Think.VERSION}, the template shows 5.1.41. Is the actual version 5.1.0 or 5.1.41?
      蒸蒸 author 2021-11-04 11:17:40
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!