Changeset 28560 for trunk/include/functions_notification.inc.php
- Timestamp:
- May 29, 2014, 7:27:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_notification.inc.php
r27369 r28560 442 442 function get_recent_post_dates($max_dates, $max_elements, $max_cats) 443 443 { 444 global $conf, $user; 445 444 global $conf, $user, $persistent_cache; 445 446 $cache_key = $persistent_cache->make_key('recent_posts'.$user['id'].$user['cache_update_time'].$max_dates.$max_elements.$max_cats); 447 if ($persistent_cache->get($cache_key, $cached)) 448 { 449 return $cached; 450 } 446 451 $where_sql = get_std_sql_where_restrict_filter('WHERE', 'i.id', true); 447 452 … … 494 499 } 495 500 501 $persistent_cache->set($cache_key, $dates); 496 502 return $dates; 497 503 }
Note: See TracChangeset
for help on using the changeset viewer.