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

Detect if json object have new update #113

Open
jimyhuang opened this issue Apr 24, 2014 · 0 comments
Open

Detect if json object have new update #113

jimyhuang opened this issue Apr 24, 2014 · 0 comments

Comments

@jimyhuang
Copy link
Member

We cache each word in json.
We can have a simple function to detect if the event have further progress by iterate the object between old and new json.

Everytime when update json, we should copy exists json to old one. So we have 2 cache at the same time.
one is event_name.json
the other is event_name.json.old

In the update progress, trigger mail event to send mail for subscriber.
May reference code here:
https://github.com/g0v/twangry/blob/master/mod/wikipedia.js#L233

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

1 participant