Git Product home page Git Product logo

Comments (7)

craigpotter avatar craigpotter commented on June 1, 2024

Kinda looks like you have this - cleanupGameStats()

Looks like it is never called however?

from glest-masterserver.

andy5995 avatar andy5995 commented on June 1, 2024

@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.

andy5995 avatar andy5995 commented on June 1, 2024

@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.

martijndeb avatar martijndeb commented on June 1, 2024

Sure that's fine, just wget / corl it and write the output to /dev/null :)

from glest-masterserver.

craigpotter avatar craigpotter commented on June 1, 2024

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.

andy5995 avatar andy5995 commented on June 1, 2024

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.

craigpotter avatar craigpotter commented on June 1, 2024

No worries... Working on it now.

from glest-masterserver.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.