You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the current currency-per-kill functionality to use a cron job that queries events instead of firing a function for every zombie kill. This will significantly reduce the load on the system and the number of functions being executed.
Requirements/use-cases
Implement a cron job that runs every 10 minutes
Query all zombie kill events for the last 10 minutes
Calculate and distribute currency based on the queried events
Ensure this method is more efficient than the current implementation
Implementation details
Use the events API to query zombie kill events
Utilize the new 'greater than' operation for event searching (e.g., created_at greater than 10 minutes ago)
Aggregate kills per player and distribute currency accordingly
Consider implementing this as a built-in module for easy user adoption
Description
Refactor the current currency-per-kill functionality to use a cron job that queries events instead of firing a function for every zombie kill. This will significantly reduce the load on the system and the number of functions being executed.
Requirements/use-cases
Implementation details
created_at
greater than 10 minutes ago)Benefits
Possible duplicates:
The text was updated successfully, but these errors were encountered: