TheSerapher/php-mmcfe-ng — pull request #661 by TheSerapher (2013-09-18 09:00:53+00:00)
Title: Issue 510

This should fix #510.

Adding incremental stats for round shares. Those were the biggest offenders regarding cron performance.

# Statistics Cron

Contributor shares, round shares and all user shares have been changed removed or updated. The total speedup of the cron is OVER 9000!

If no cached data is found, a full cache fill is done. If we do have cached data, we use the cached share_id to run a incremental update.

# Website

Changed some statistics calls to properly fetch from global cache, fallback to local cache and if that too fails, run the SQLs.

Templates have not changed, the returned data is properly formatted to work with the existing template code.

# Fallback

If the caches are disabled via configuration, then the SQL queries will always trigger.