Changeset 16412 for trunk

Show
Ignore:
Timestamp:
05/20/08 12:43:04 (3 months ago)
Author:
rambo
Message:

forward port r16411

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/config/midcom_config.php

    r16070 r16412  
    534534$GLOBALS['midcom_config_default']['sessioning_service_always_enable_for_users'] = true; 
    535535 
     536/** 
     537 * Trash cleanup, purge deleted objects after X days 
     538 */ 
     539$GLOBALS['midcom_config_default']['cron_pure_deleted_after'] = 25; 
     540 
     541 
    536542/* ----- Include the site config ----- */ 
    537543/* This should be replaced by $_MIDGARD constructs */ 
  • trunk/midcom/midcom.core/midcom/exec/purge_deleted.php

    r14773 r16412  
    3030    $qb->add_constraint('metadata.deleted', '<>', 0); 
    3131    $qb->add_constraint('metadata.revised', '<', gmdate('Y-m-d H:i:s', $cut_off)); 
     32    $qb->add_constraint('sitegroup', '=', $_MIDGARD['sitegroup']); 
    3233    $qb->include_deleted(); 
    3334    $objects = $qb->execute(); 
     35    unset($qb); 
    3436    if (!is_array($objects)) 
    3537    { 
  • trunk/midcom/midcom.core/midcom/services/cron.php

    r16402 r16412  
    134134            'recurrence' => MIDCOM_CRON_HOUR, 
    135135        ), 
     136        Array 
     137        ( 
     138            'handler' => 'midcom_cron_purgedeleted', 
     139            'recurrence' => MIDCOM_CRON_DAY, 
     140        ), 
    136141    ); 
    137142