sstephenson / hector

A private group chat server for people you trust
MIT License
131 stars 15 forks source link

Identities yaml should not be cached in memory #12

Closed clintecker closed 14 years ago

clintecker commented 14 years ago

The current behavior loads the username and passwords into memory the first time Identity::find is called which is when the first user connects.

If you want to add a new user after the point, you must restart the server to pick up the changes.

leedo commented 14 years ago

Keeping them in memory seems like a good idea to me. Maybe we could just check the mtime on the yaml file each time and reload if it has changed?

leedo commented 14 years ago

https://github.com/leedo/hector/commit/e28843347156789a8ef211cec864827e816488d9 implements mtime tracking