Skip to content
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

Avoid setting up file watcher on cache_classes #37216

Merged
merged 1 commit into from Sep 25, 2019

Conversation

jhawthorn
Copy link
Member

Previously, if cache_classes was true we would build a file_watcher and add it to reloaders though it would never be used. This wasted some memory for FileUpdateChecker to maintain an array of all watched files, and added slightly to boot time.

Instead we should avoid building a file watcher it when cache_classes is true.

Previously, if cache_classes was true we would build a file_watcher and
add it to reloaders though it would never be used. This wasted some
memory for FileUpdateChecker to maintain an array of all watched files,
and added slightly to boot time.

Instead we should avoid building a file watcher it when cache_classes is
true.
@rails-bot rails-bot bot added the railties label Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants