修改控制器后,会出现30秒的延迟,才能生效。这个不是thinkphp框架的问题,是PHP7.x的问题,关闭opchche就行。找到php.ini下的opchche拓展:
opcache.enable = 1