There is a problem with current DIC expiration check.
Cosider following config:
Let's say I change content of MyService.php from
to
<?php
class MyService
{
public function foo();
}
(file changed, dependencies didn't)
On next request DependencyChecker compares modification times with meta file of generated container, which differs. Dependency hash is now calculated and matches the one in meta file, so container is considered non-expired.
The problem is that meta file is not updated and hash is calculated on every request, which leads to performance overhead for large containers.
There is a problem with current DIC expiration check.
Cosider following config:
Let's say I change content of MyService.php from
to
(file changed, dependencies didn't)
On next request
DependencyCheckercompares modification times with meta file of generated container, which differs. Dependency hash is now calculated and matches the one in meta file, so container is considered non-expired.The problem is that meta file is not updated and hash is calculated on every request, which leads to performance overhead for large containers.