well if I'm not mistaken the beginning of auto_archive.php needs to be changed to

$now[year]      = date("Y");
$now[month]    = date("m");
$now[stamp] = $now[year].$now[month];

$db_content = file("$cutepath/auto_archive.db.php");
list($last_archived[year], $last_archived[month]) = split("\|", $db_content[0] );
$last_archived[stamp] = $last_archived[year].$last_archived[month];


archive stamp is now calculated as YEAR.MONTH, so Jan 05 would be 200501.

If you already have the autoarchive mod added, you'll need to prefix all month values in auto_archive.db.php with a '0'.

The achive db should look something like:

2005|1
2004|12
2004|11
0|0

change the first line to read 2005|01

when finished it shoule look like this changes are in bold
$now[year]      = date("Y");
$now[month]     = date("m");
$now[stamp] = $now[year].$now[month];

$db_content = file("$cutepath/auto_archive.db.php");
list($last_archived[year], $last_archived[month]) = split("\|", $db_content[0] );
$last_archived[stamp] = $last_archived[year].$last_archived[month];

Pretty easy to add page caching and it makes a world of difference to your server when hosting cutenews and to your visitors! Open your main index script, say index.php and add this the code to very top before ANYTHING else.  Point filemtime to wherever you keep comments.txt. The reason we point to comments.txt is to provide a simple means to determine when to refresh the cache copy on the client side. Personally I produce a dummy.txt file whenever a comment or news is added and point to that. But this is sufficent for most cases to get rolling.

<?php
header("Cache-Control: must-revalidate"); 
header("Pragma: cache");

$if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']);

$mtime = filemtime("./cutenews/data/comments.txt");
$gmdate_mod = gmdate('D, d M Y H:i:s', $mtime) . ' GMT';

if ($if_modified_since == $gmdate_mod) {
    header("HTTP/1.0 304 Not Modified");
    die();
}
header("Last-Modified: $gmdate_mod");
?>

Now we need a simple means to refresh the cache in case of a news post instead of a comment.  The easist way to do this is edit addnews.mdu at the very bottom where you find:

  msg("info","News added", "The news item was successfully added.</br>$unapproved_status_msg");

Add this right below this:

 touch("./data/comments.txt");

Now you have a easy and fairly decent page caching setup for cutenews that will boost performance.

Can someone explain how to make the dummy.txt file when news is created