Changeset 928 for cpc/trunk/project/bin


Ignore:
Timestamp:
Oct 28, 2009, 12:37:27 PM (11 years ago)
Author:
goya
Message:

MaJ du HardCache? pour les séances mise à jour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/bin/update_hardcache

    r875 r928  
    1010done;
    1111
    12 for (( seance_id = $(echo "select id from seance order by id DESC limit 1 " | mysql $MYSQLID $DBNAME | tail -n 1) ; seance_id > 0 ; seance_id-- ))
     12for seance_id in $(echo "select DISTINCT seance_id from presence where updated_at > (NOW() - 60*60*24)" | mysql $MYSQLID $DBNAME )
    1313do
    14   if ! ls web/seance/$seance_id.html > /dev/null 2>&1 || test -z web/seance/$seance_id.html ;
    15   then
    1614        echo $seance_id
    1715        rm web/seance/$seance_id.html 2> /dev/null
    1816        curl -q http://www.nosdeputes.fr/seance/$seance_id > TMPFILE
    1917        mv TMPFILE web/seance/$seance_id.html
    20   fi
    2118done
    22 
Note: See TracChangeset for help on using the changeset viewer.