longer cache timings, with better invalidation

This commit is contained in:
Shish
2012-06-24 01:57:06 +01:00
parent 6c4fd0d14d
commit 8dfeb7cda3
5 changed files with 9 additions and 6 deletions

View File

@ -198,7 +198,7 @@ class PrivMsg extends Extension {
WHERE to_id = :to_id
AND is_read = :is_read
", array("to_id" => $user->id, "is_read" => "N"));
$database->cache->set("pm-count-{$user->id}", $count, 60);
$database->cache->set("pm-count-{$user->id}", $count, 600);
}
return $count;
}