Tag Archives: multi-process

config.threadsafe! Rails 中的多进程和多线程(翻译)

原文写在 Rails 3时代,目前 Rails 4已经去除 config.threadsafe!,默认已经是线程安全的。 CONFIG.THREADSAFE!: WHAT DOES IT DO? def threadsafe! @preload_frameworks = true @cache_classes = true @dependency_loading = false @allow_concurrency = true self end Preloading Frameworks The first option @preload_frameworks does pretty much what it says, it … Continue reading

Posted in ruby on rails | Tagged , , | Leave a comment