Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: dailycleanup.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
function task_dailycleanup($task)
| */
function task_dailycleanup($task)
|
Zeile 17 | Zeile 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 52 | Zeile 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); }
|