noblesamurai/support_db — pull request #3 by thomasvangrondelle (2014-03-03 23:07:18+00:00)
Title: added sweepers and mysql db to store data

Changed the structure so that there are 2 php scripts which act as sweepers to get the data from Zendesk, then they write it to a database. So now everytime you access index.php it makes a call to stats.php which pulls the data from the db

currentstats.php will run every minute on heroku (using the heroku scheduler) and dailystats.php will run once a day close to midnight to get the daily ticket count (again using the heroku scheduler).