-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Closed
Copy link
Description
Calling cache:clear command now works by this scheme:
- Creating temporary kernel in temporary file
- Booting temporary kernel (due boot, kernel warming up the cache)
- Move warmed up temporary dir to real cache dir with replacing usages of temporsry kernel class to user's kernel class
While building container, kernel adds to ContainerBuilder
instance ObjectReource
of itself ($this
). Adding object resource acually means adding file with class, and files with parents of class as FileResource
. Because building of container making by temporary kernel, file with it's class is temporary file, created on step 1. So, temporary file (which is actually deleted on step 1) added to metadata. This means, that next request with debug
environment will rebuild just warmed up cache, because metadata contains reference to temporary file, which does not exists.