Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/aslo/cron/daily-recount
blob: 72edbc85eca8ed43bb7973c7648be44604cd933c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

root=$(dirname $(dirname $(dirname $(readlink --canonicalize-missing $0))))

cd $root/bin

for time in -2day -1day; do
    date=$(date +%F -d $time)
    php -f maintenance.php weekly $date
    php -f maintenance.php global_stats $date
    php -f maintenance.php collection_stats $date
    php -f maintenance.php collection_subscribers $date
done

php -f maintenance.php total
php -f maintenance.php ADU
php -f maintenance.php gc
#php -f maintenance.php publish_files
php -f maintenance.php reviews
php -f maintenance.php user_ratings
php -f maintenance.php ratings
php -f maintenance.php unconfirmed
php -f maintenance.php expired_resetcode
php -f maintenance.php addons_collections_total
#php -f maintenance.php collections_total
php -f maintenance.php collections_ratings
php -f maintenance.php share_count_totals
php -f maintenance.php category_totals