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

Variable is not updated when YML file changes, even when I use reload! #78

Open
swaathi opened this issue Feb 23, 2015 · 2 comments
Open

Comments

@swaathi
Copy link

swaathi commented Feb 23, 2015

Immediately after updating the YML file I call upon the reload! function to make sure the variable I use to read the YML file values are also updated. But the variable is not being reflected fast enough. I am forced to call upon reload! function every time I use the variable just to make sure the correct value is being read. This causes a horrible performance issue since it unnecessarily loads the YML file over and over again.

@lulalala
Copy link

lulalala commented Sep 8, 2015

Can your issue be related to Spring? I can reproduce it like this:

Initially I set AppConfig.test to be 1.
I then go into the console and AppConfig.test would return 1.
Then I change it to 2.
When I go into the console, AppConfig.test still returns 1.
Only after a AppConfig.reload! call would AppConfig.test return 2.
And if I exit the console again and start another console, it would still return 1 (unless I do another reload!.
Calling spring stop can remedy this issue, as the console would not cache the old value after that.

@gerard76
Copy link

Same here. I would see the new variables in production console, but not a new development console.

spring stop worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants