Show
Ignore:
Timestamp:
07/05/06 22:41:43 (2 years ago)
Author:
mbonetti
Message:

EXPERIMENTAL: store the last update date in the properties table, instead of
running a pointless query.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/util.php

    r1496 r1516  
    3030 
    3131function getLastModif() { 
    32     static $ret; 
    33     if ($ret == 0) { 
    34         $res = rss_query("select unix_timestamp(max(added)) as max_added from ".getTable("item")); 
    35         list ($ret) = rss_fetch_row($res); 
    36     } 
    37     return $ret; 
     32    return getProperty('__meta__','meta.lastupdate'); 
    3833} 
    3934