[DiscordArchive] how it is right now it just goes through the table and returns the tickets with the players guid rig
[DiscordArchive] how it is right now it just goes through the table and returns the tickets with the players guid rig
Archived author: Crow • Posted: 2023-01-12T01:12:33.956000+00:00
Original source
is that a server event hook?
Archived author: Nix • Posted: 2023-01-12T01:12:43.659000+00:00
Original source
Async updating is writing that same data to the database but async
Archived author: Foe • Posted: 2023-01-12T01:13:03.067000+00:00
Original source
The only time I have ever had use for a cache that I had to refresh was with a redeemer that had a website front end integrated to it as well
Archived author: Foe • Posted: 2023-01-12T01:13:40.214000+00:00
Original source
With an entirely ingame system you should only ever have to load your cache data on startup and reloads
Archived author: Nix • Posted: 2023-01-12T01:13:43.278000+00:00
Original source
So for example
```
- OnCommand (Delete Ticket with Id 5)
- Ticket is deleted from the lua table
- Ticket is async deleted from the database
```
Archived author: Crow • Posted: 2023-01-12T01:14:01.033000+00:00
Original source
is that some kinda lua method?
Archived author: Foe • Posted: 2023-01-12T01:14:14.760000+00:00
Original source
No, you have to write that update logic yourself
Archived author: Nix • Posted: 2023-01-12T01:14:22.406000+00:00
Original source
Eluna provides functions to run Async DB updates, the OnCommand is also an event that is provided
Archived author: Nix • Posted: 2023-01-12T01:14:45.974000+00:00
Original source
But you'd need to register a function to the event, and then write the code to delete the ticket from the table, and then call the eluna function to update the database async
Archived author: Nix • Posted: 2023-01-12T01:14:55.135000+00:00
Original source
I think it might be useful to explain the 2 ways you can update your database