M
M
Mikhail Bazhenov2014-09-24 10:35:26
Yii
Mikhail Bazhenov, 2014-09-24 10:35:26

Why is Vagrant slowing down page load speed?

Hey!
It costs Vagrant on it php with yii2.
In yii2 there is such an option for working with Assets (Service files such as css and js) it always copies service files to the www/static folder (let's say) and if you set the forceCopy = true flag, it will copy on each request
As a result, the server response speed may reach 30 seconds
Vagrant works based on VirtaulBox
the solution I see is not to synchronize the www/static folder, but could not find the options to do so

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-09-24
@benign

Host system - Windows? If so, do you mount the directory via samba or via shared folders? If tench - the same, NFS or shared folders?
In general, you should understand that the speed of working with the file system in this case is quite low. Isn't it better to dump symlinks? Then the changes will always be relevant, and performance will not be affected.

P
Puma Thailand, 2014-09-24
@opium

that is, you set the generation of assets for each request and are surprised that it works slowly?
shot himself in the leg, for some reason the leg hurts.

M
maxclax, 2014-12-01
@maxclax

What prevents you from using MAMP pro instead of Vagrant on mac os? There will be no jambs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question