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

Don't update rss feeds every post #645

Closed
psychobunny opened this issue Dec 10, 2013 · 6 comments
Closed

Don't update rss feeds every post #645

psychobunny opened this issue Dec 10, 2013 · 6 comments
Assignees
Milestone

Comments

@psychobunny
Copy link
Contributor

Maybe update it once an hour, or so. Great for really busy forums.

side effects include preventing migrators from blowing up your server

@psychobunny
Copy link
Contributor Author

ezmode just write the last rss parse time to db and if > 3600 * 1000 update rss if not, leave it alone.

@akhoury
Copy link
Member

akhoury commented Dec 10, 2013

+1 -
well, to be fair, if someone is migrating a huge forum, i dont think it's a big deal to actually go in and comment out few lines in NodeBB code, unless the code can have some mode, like a safe-mode, where all the fancy stuff are disabled, but that too much to ask lol.

@akhoury
Copy link
Member

akhoury commented Dec 10, 2013

hey @psychobunny I did some testing and and I can confirm the feed and the plugins.firehook stuff were the biggest offenders,
see the Post.create commented-out line here
akhoury/nodebb-plugin-import#3

why not refactor Post.create into 2 functions, an essential part and the fancy part, and the importers can only use the essential part, I think that's an easy solution.

@barisusakli
Copy link
Member

We were talking about the same thing today. I think Posts.create should be that internal function and Posts.reply can be the one that is called from the client. Topics.post also uses Posts.create so might have to juggle some stuff around there too.

@julianlam
Copy link
Member

The thing that made me do a double take was that Posts.create and Posts.reply are essentially the same thing, except that Posts.reply does a little bit of extra stuff (i.e. notify followers, etc).

In the interest of DRY, we probably have Posts.reply refactored to call Posts.create, have Topics.post call Posts.reply instead

@akhoury
Copy link
Member

akhoury commented Dec 30, 2013

+1 sweet

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

No branches or pull requests

4 participants