Commit 95e01787 authored by Feu's avatar Feu

nouvelles taches dans phpcron et wip PG

parent 45e86222
......@@ -60,6 +60,9 @@ class pgfiche extends geopoint
var $adressepostal;
var $placesurcarte;
var $contraste;
var $appreciation;
var $commentaire;
var $date_maj;
var $date_validite;
......@@ -119,6 +122,7 @@ class pgfichemaj extends stdentity
var $arretsbus; // (données sérialisés)
var $tarifs; // (données sérialisés)
var $reductions; // (données sérialisés)
var $services; // (données sérialisés)
var $tags; // (données sérialisés)
var $date_soumission;
......
......@@ -42,5 +42,13 @@ new requete($site->dbrw,"DELETE FROM `cpt_type_produit` WHERE NOT EXISTS ( SELEC
new requete($site->dbrw,"DELETE FROM `pl_gap` WHERE NOT EXISTS ( SELECT * FROM pl_gap_user WHERE pl_gap_user.id_gap = pl_gap.id_gap AND pl_gap_user.id_planning = pl_gap.id_planning ) AND end_gap < NOW( )");
// Tâche 4 : Nettoyages des sessions expirés
new requete($site->dbrw, "DELETE FROM `site_sessions` WHERE expire_sess < NOW() AND expire_sess IS NOT NULL");
// Tâche 5 : Nettoyages des sessions trop vieilles
new requete($site->dbrw, "DELETE FROM `site_sessions` WHERE datediff(NOW(),derniere_visite) > 120");
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment