Make Discover 'really' weekly
But not using cron for it, we are cool and use Sidetiq
This helps us to reduce fetching queries and updating every time a user is visiting the site.
Sidetiq is no longer maintained but we could use something as simple as Rails.cache.fetch
Guess that's better as it means we don't get a slow page load for the first request after the cache has expired.
We could even think about just calculating them once a week / twice a day / ... and store the results in the database.
We could even think about just calculating them once a week / twice a day / ... and store the results in the database.
That's what I meant with triggering it over Sidetiq basically.
Storing the result somewhere and grabbing it for a week. We could probably just create a Rake-Task triggering an ActiveJob for that, and indeed hit that via cron on the server.
once a week / twice a day / ...
I think twice a day could work quite nicely. If it was weekly it'd turn in to a sort of "weekly digest" which would get looked at once a week. This miss whole point of being able to see what's currently going on.