search

Home  >  Q&A  >  body text

The 'route_check_cache' configuration item was not found in the application configuration file app.php

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?

蒸蒸蒸蒸1171 days ago932

reply all(4)I'll reply

  • 雪了无痕

    雪了无痕2021-11-10 11:06:45

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

    reply
    0
  • iEfoam

    iEfoam2021-11-03 16:56:56

    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
    0
  • 蒸蒸

    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?

    蒸蒸 · 2021-11-04 11:17:40
  • Cancelreply