Vergleich inc/tasks/dailycleanup.php - 1.6.1 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: dailycleanup.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

function task_dailycleanup($task)

 */

function task_dailycleanup($task)

Zeile 17Zeile 17
	
// Clear out sessions older than 24h
$cut = TIME_NOW-60*60*24;

	
// Clear out sessions older than 24h
$cut = TIME_NOW-60*60*24;

	$db->delete_query("sessions", "uid='0' AND time < '{$cut}'");

	$db->delete_query("sessions", "time < '{$cut}'");


// Delete old read topics
if($mybb->settings['threadreadcut'] > 0)


// Delete old read topics
if($mybb->settings['threadreadcut'] > 0)

Zeile 52Zeile 52
	$cache->update_most_replied_threads();
$cache->update_most_viewed_threads();
$cache->update_birthdays();

	$cache->update_most_replied_threads();
$cache->update_most_viewed_threads();
$cache->update_birthdays();

 
	$cache->update_forumsdisplay();

	
add_task_log($task, $lang->task_dailycleanup_ran);
}

	
add_task_log($task, $lang->task_dailycleanup_ran);
}