Index: trunk/kernel/units/general/cat_event_handler.php =================================================================== diff -u -N -r5177 -r5179 --- trunk/kernel/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 5177) +++ trunk/kernel/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 5179) @@ -501,10 +501,10 @@ %1$s.NewItem )'); - // hot items + // hot items (cache updated every hour) $sql = 'SELECT Data FROM '.TABLE_PREFIX.'Cache - WHERE (VarName = "'.$property_map['HotLimit'].'") AND ('.adodb_mktime().' - Cached < 3600)'; + WHERE (VarName = "'.$property_map['HotLimit'].'") AND (Cached >'.(adodb_mktime() - 3600).')'; $hot_limit = $this->Conn->GetOne($sql); if ($hot_limit === false) { $hot_limit = $this->CalculateHotLimit($event); Index: trunk/core/units/general/cat_event_handler.php =================================================================== diff -u -N -r5177 -r5179 --- trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 5177) +++ trunk/core/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 5179) @@ -501,10 +501,10 @@ %1$s.NewItem )'); - // hot items + // hot items (cache updated every hour) $sql = 'SELECT Data FROM '.TABLE_PREFIX.'Cache - WHERE (VarName = "'.$property_map['HotLimit'].'") AND ('.adodb_mktime().' - Cached < 3600)'; + WHERE (VarName = "'.$property_map['HotLimit'].'") AND (Cached >'.(adodb_mktime() - 3600).')'; $hot_limit = $this->Conn->GetOne($sql); if ($hot_limit === false) { $hot_limit = $this->CalculateHotLimit($event);