Changeset 2615


Ignore:
Timestamp:
Jan 31, 2012, 2:04:29 PM (8 years ago)
Author:
goya
Message:

better logs and update

File:
1 edited

Legend:

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

    r2565 r2615  
    66do
    77  rm web/$url.html
    8   curl http://www.nosdeputes.fr/$url > $TMPFILE
     8  curl http://www.nosdeputes.fr/$url > $TMPFILE 2> /dev/null
    99  mv $TMPFILE web/$url.html
    1010done;
    1111
    12 for seance_id in $(echo "select DISTINCT seance_id from presence where updated_at > (NOW() - 60*60*5)" | mysql $MYSQLID $DBNAME | grep -v seance_id )
     12for seance_id in $(echo "select DISTINCT seance_id from intervention where updated_at > SUBTIME(NOW(),'4:0:0')" | mysql $MYSQLID $DBNAME | grep -v seance_id )
    1313do
    1414        echo "http://www.nosdeputes.fr/seance/$seance_id"
    1515        rm web/seance/$seance_id.html 2> /dev/null
    16         curl -q http://www.nosdeputes.fr/seance/$seance_id > $TMPFILE
     16        curl -q "http://www.nosdeputes.fr/seance/$seance_id?_sf_ignore_cache=$$" > $TMPFILE
    1717        mv $TMPFILE web/seance/$seance_id.html
    1818done
Note: See TracChangeset for help on using the changeset viewer.