Changeset 11738
- Timestamp:
- Jul 14, 2011, 12:02:49 AM (13 years ago)
- Location:
- branches/2.2/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/include/category_cats.inc.php
r9365 r11738 123 123 if (isset($image_id)) 124 124 { 125 if ($ row['user_representative_picture_id'] != $image_id)125 if ($conf['representative_cache_on_subcats'] and $row['user_representative_picture_id'] != $image_id) 126 126 { 127 127 $user_representative_updates_for[ $user['id'].'#'.$row['id'] ] = $image_id; … … 213 213 array_push($new_image_ids, $image_id); 214 214 } 215 216 $user_representative_updates_for[ $user['id'].'#'.$category['id'] ] = $image_id; 215 216 if ($conf['representative_cache_on_level']) 217 { 218 $user_representative_updates_for[ $user['id'].'#'.$category['id'] ] = $image_id; 219 } 217 220 218 221 $category['representative_picture_id'] = $image_id; -
branches/2.2/include/config_default.inc.php
r11190 r11738 252 252 // Maintenance]. 253 253 $conf['allow_random_representative'] = false; 254 255 // representative_cache_on_level: if a thumbnail is chosen as representative 256 // but has higher privacy level than current user, Piwigo randomly selects 257 // another thumbnail. Should be store this thumbnail in cache to avoid 258 // another consuming SQL query on next page refresh? 259 $conf['representative_cache_on_level'] = true; 260 261 // representative_cache_on_subcats: if a category (= album) only contains 262 // sub-categories, Piwigo randomly selects a thumbnail among sub-categories 263 // representative. Should we store this thumbnail in cache to avoid another 264 // "slightly" consuming SQL query on next page refresh? 265 $conf['representative_cache_on_subcats'] = true; 254 266 255 267 // allow_html_descriptions : authorize administrators to use HTML in
Note: See TracChangeset
for help on using the changeset viewer.