Changeset 47078 in spip-zone for _dev_/univers_spip


Ignore:
Timestamp:
Apr 26, 2011, 12:19:22 PM (10 years ago)
Author:
cedric@…
Message:

revisiter les sites publies pour maj de leur etat
baisser la frequence des genies

Location:
_dev_/univers_spip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _dev_/univers_spip/genie/univers_check.php

    r38334 r47078  
    1010        include_spip('inc/univers_analyser');
    1111
    12         // les sites en attente de validation
    13         $res = sql_select("*", "spip_websites", "statut='prop' AND (retry=0 OR date<".sql_quote(date('Y-m-d H:i:s',time()-3600)).")", "", "date,retry","0,10");
     12        $il_y_a_une_heure = date('Y-m-d H:i:s',time()-3600);
     13        // 2 sites en attente de validation
     14        $res = sql_select("*", "spip_websites", "statut='prop' AND (retry=0 OR date<".sql_quote($il_y_a_une_heure).")", "", "date,retry","0,2");
     15        while ($row = sql_fetch($res)) {
     16                univers_analyser_un($row);
     17        }
     18
     19        // revisiter 5 sites deja vu, en commencant par les plus anciens
     20        $res = sql_select("*", "spip_websites", "statut='publie' AND (retry=0 OR date<".sql_quote($il_y_a_une_heure).")", "", "date,retry","0,5");
    1421        while ($row = sql_fetch($res)) {
    1522                univers_analyser_un($row);
  • _dev_/univers_spip/plugin.xml

    r42381 r47078  
    44        <licence>GPL</licence>
    55        <etat>test</etat>
    6         <version>0.2.7</version>
     6        <version>0.2.8</version>
    77        <version_base>0.1.9</version_base>
    88        <install>base/univers.php</install>
  • _dev_/univers_spip/univers_pipelines.php

    r38334 r47078  
    88
    99function univers_taches_generales_cron($taches_generales){
    10         $taches_generales['univers_feed'] = 120;
     10        $taches_generales['univers_feed'] = 240;
    1111        #$taches_generales['univers_google'] = 77;
    1212        $taches_generales['univers_referers'] = 12*3600;
    13         $taches_generales['univers_boss'] = 37;
    14         $taches_generales['univers_check'] = 43;
     13        $taches_generales['univers_boss'] = 173;
     14        $taches_generales['univers_check'] = 97;
    1515        #$taches_generales['univers_check_1'] = 41;
    1616        #$taches_generales['univers_check_2'] = 37;
Note: See TracChangeset for help on using the changeset viewer.