Skip to content

Container is sometimes being rebuilt on every request even though nothing changed #227

@finwe

Description

@finwe

Version:

  • application: v3.0.1
  • bootstrap: v3.0.0
  • di: v3.0.1

Bug Description

According to Tracy Bar, the application sometimes falls to a state when the container is being rebuilt on every request.

This is a result of the condition $files !== $currentFiles in DependencyChecker::isExpired call being true. All compared files are equal except for temp/cache/nette.application/touch timestamp of which differs for about 2 seconds.

Steps To Reproduce

n/a. Unfortunately, this comes and goes and I haven't yet discovered the exact cause.

Expected Behavior

The container is being rebuit only when something actually changed.

Possible Solution

Compilation of the container takes about 500-1500 ms based on Tracy panel. Maybe the timestamps are saved on opposite sides of the compilation and therefore the difference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions