a little extra consistency in cache variable names

This commit is contained in:
Shish
2014-11-26 13:09:49 +00:00
parent 4721d666cd
commit c0dfd9adc0
4 changed files with 8 additions and 8 deletions

View File

@ -60,13 +60,13 @@ class Featured extends Extension {
global $config, $database, $page, $user;
$fid = $config->get_int("featured_id");
if($fid > 0) {
$image = $database->cache->get("featured_image_object-$fid");
$image = $database->cache->get("featured_image_object:$fid");
if($image === false) {
$image = Image::by_id($fid);
if($image) { // make sure the object is fully populated before saving
$image->get_tag_array();
}
$database->cache->set("featured_image_object-$fid", $image, 600);
$database->cache->set("featured_image_object:$fid", $image, 600);
}
if(!is_null($image)) {
if(class_exists("Ratings")) {