Comments (7)
Kinda looks like you have this - cleanupGameStats()
Looks like it is never called however?
from glest-masterserver.
@craigpotter very likely. We didn't write the original code, as this is a fork of MegaGlest. Though we've updated a lot of code, there's still a lot that hasn't been reviewed yet. Can you tell if that function works, and just needs to be called somehow?
from glest-masterserver.
@sexybiggetje Would it be a good idea to just put the function in a separate file, then run it as a cron/scheduled job?
from glest-masterserver.
Sure that's fine, just wget / corl it and write the output to /dev/null :)
from glest-masterserver.
Hold off... I don't think this function will do it ... but it is close....
This function only purges games that are marked as "finished" and are less than 5 minutes duration.
Looking at https://zetaglest.dreamhosters.com/showPlayers.php, you can filter by day,week,month and all time.
I suggest I create you separate file which you can wget/curl or run via cronjob that wipes data over 3 months ?
Thoughts?
from glest-masterserver.
yeah, that sounds good. But purging at 1 month. I can set up the cron job on the host this code runs on.
from glest-masterserver.
No worries... Working on it now.
from glest-masterserver.
Related Issues (11)
- Get rid of `clean_str` HOT 3
- Fix unsafe mysql queries, use binds! HOT 6
- Adding content to the mod center HOT 1
- mobile-friendly display of server list and game details HOT 3
- Entries aren't displayed if there are line breaks in the description HOT 1
- README for this repo needs changing
- clicking the "Finished" link doesn't collapse the details HOT 5
- IP addresses don't need to be shown on the web HOT 8
- banner image should be placed at the top HOT 1
- link back to main needed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glest-masterserver.