-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slow page load (cache creation problem?) #685
Comments
Ok so it means in First of all try clear cache and re warmup else try doing var dump in this 2013/10/30 thom777 [email protected]
|
Yes, exactly, in this function "if (false !== strpos(file_get_contents($file), 'AdmingeneratorEmptyBuilderClass')) {" returns true. There are arround 10 files which contain "AdmingeneratorEmptyBuilderClass" and are therefore regenerated. I'm just wondering why the "simple" regeneration of these files takes a full second. |
The real problem for me its the fact that they stay in this state a yaml
|
Thanks for your hint Cedric. I was able to track down the problem. There was a "left over" controller folder in the directory tree with no generator.yml file related. The same problem also appears, if there is for example a NewController, but no related "new" section in the generator.yml file. This was the reason for the generated "AdmingeneratorEmptyBuilderClass" files. After having deleted this controller folder, the speed is back on a normal level again. cheers! |
@cedriclombardot To me this seems like a serious performance issue. If there is no related Or there should be some command like |
Sounds like a good idea to me, as all of the controllers are generated by default. So if you don't use and therefore delete one of the generator.yml sections (which quite often happens), you directly run into this issue. I think the "normal" user isn't aware of the fact, that in this case he should also delete the related autogenerated controller. This might cause performance losses to a lot of people at the moment. |
Our "AdmingeneratorGeneratorBundle" backend applications responses rather slow. The problem seems to be in the which loads for over a second. Not only on cache generation, but on every call (dev & prod):
I discovered a possible relation to the "mustOverwriteIfExists" property in TwigGenerator/Builder/BaseBuilder.php. If this property is testwise set on false, it's fast as desired after a reload. If I leave it on true, there are only a dozen recreated files, but this takes over a second. Any help is appreciated.
The text was updated successfully, but these errors were encountered: