首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Symfony缓存:清除超时-超过300秒

Symfony缓存:清除超时-超过300秒
EN

Stack Overflow用户
提问于 2019-09-24 07:13:24
回答 2查看 2.6K关注 0票数 1

我的Symfony 4.3项目和作曲家出了点问题。每当我尝试安装、删除或执行任何操作时,它都会停在"Executing script cache:clear“部分,并一直停在那里,直到超时。我试着将超时时间增加到像2000这样疯狂的值,但没有帮助,它只是停留在那里。

有人知道怎么解决这个问题吗?

代码语言:javascript
复制
λ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear

  [Symfony\Component\Process\Exception\ProcessTimedOutException]
  The process ""C:\wamp\bin\php\php7.3.9\php.exe" "--php-ini=C:\wamp\bin\php\php7.3.9\php.ini" "./bin/
  console" --ansi cache:clear" exceeded the timeout of 300 seconds.


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

我尝试手动删除var/cache内容,但无济于事。我一直在谷歌上寻找答案,堆栈溢出。

EN

回答 2

Stack Overflow用户

发布于 2019-09-24 07:41:46

我找到我的问题了。在我的twig.yaml中,我有node_modules文件夹路径。我在测试css文件时忘了删除它,当cache:clear执行预热时,它确实在处理100k的文件夹和文件。这就解释了为什么300秒是不够的,即使我将其设置为2000秒,我打赌它仍然会超时。

经验教训:小心你的树枝配置!

票数 0
EN

Stack Overflow用户

发布于 2020-07-10 19:17:48

我希望这能对你有所帮助,尝试这样做

composer install --首选--dist --no-scripts -vvv

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58071207

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档