I have noticed one particular aspect of it which gives me some cause for thought. At present, the Last-Modified HTTP header and <updated> XML field both use time() which isn't exactly accurate or helpful. Here are the obvious spots which I'm thinking of, but there may be other spots in the code which could do with a tweak to make time/date more accurate:
Code: Select all
'FEED_UPDATED' => $user->format_date(time(), $feed_date_format, true),
Code: Select all
header("Last-Modified: " . gmdate('D, d M Y H:i:s', time()) . ' GMT');
Code: Select all
SELECT MAX(forum_last_post_time) FROM phpbb_forums;
Code: Select all
SELECT MAX(topic_last_post_time) FROM phpbb_topics;
Code: Select all
SELECT forum_last_post_time FROM phpbb_forums WHERE forum_id=$forum_id;
Code: Select all
SELECT topic_last_post_time FROM phpbb_topics WHERE topic_id=$topic_id;
Code: Select all
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$config['feed_expires']) . ' GMT');
Other than that, I reckon it looks pretty good.