aplotor / expanse

selfhosted multi-user web app for externally storing Reddit items (saved, created, upvoted, downvoted, hidden) to bypass Reddit's 1000-item listing limits
GNU Affero General Public License v3.0
376 stars 16 forks source link

Add variable to adjust the update interval #25

Closed QtFuta closed 1 year ago

QtFuta commented 1 year ago

Add environment variable to easily adjust the interval to update all users.

In my case I don't mind setting it up to once every 30 minutes :P

aplotor commented 1 year ago

the interval should not be decreased from the default to stay within reddit api ratelimit, that leaves increasing. what is the use case for increasing the interval?

QtFuta commented 1 year ago

what is the use case for increasing the interval?

In my case, the host doesn't have a lot of resources and I already have some other stuff running in there, hehe.
(Actually I'm running the code in my fork since it uses sqlite, having an instance of any DB is a struggle :S )
Since I don't use reddit that aggressively and the deployment is just for me, a greater interval doesn't hurt to keep stuff updated.


the interval should not be decreased from the default to stay within reddit api ratelimit

A check could be added, if the value is less than one default to one.