Changeset 28432
- Timestamp:
- May 11, 2014, 10:26:41 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/maintenance.php
r26461 r28432 147 147 $template->delete_compiled_templates(); 148 148 FileCombiner::clear_combined_files(); 149 $persistent_cache->purge(true); 149 150 break; 150 151 } -
trunk/admin/plugins_installed.php
r26461 r28432 78 78 { 79 79 $template->delete_compiled_templates(); 80 $persistent_cache->purge(true); 80 81 } 81 82 redirect($base_url); -
trunk/include/common.inc.php
r27152 r28432 104 104 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); 105 105 106 $persistent_cache = new PersistentFileCache(); 106 107 107 108 // Database connection -
trunk/include/functions.inc.php
r28171 r28432 38 38 include_once( PHPWG_ROOT_PATH .'include/derivative.inc.php'); 39 39 include_once( PHPWG_ROOT_PATH .'include/template.class.php'); 40 include_once( PHPWG_ROOT_PATH .'include/cache.class.php'); 40 41 41 42 -
trunk/include/section_init.inc.php
r28320 r28432 292 292 else 293 293 { 294 $cache_key = $persistent_cache->make_key('all_iids'.$user['id'].$user['cache_update_time'].$conf['order_by']); 294 295 unset($page['is_homepage']); 295 296 $where_sql = '1=1'; … … 302 303 } 303 304 304 // main query 305 $query = ' 305 if ( !isset($cache_key) || !$persistent_cache->get($cache_key, $page['items'])) 306 { 307 // main query 308 $query = ' 306 309 SELECT DISTINCT(image_id) 307 310 FROM '.IMAGE_CATEGORY_TABLE.' … … 313 316 ;'; 314 317 315 $page['items'] = query2array($query,null, 'image_id'); 318 $page['items'] = query2array($query,null, 'image_id'); 319 320 if ( isset($cache_key) ) 321 $persistent_cache->set($cache_key, $page['items']); 322 } 316 323 } 317 324 }
Note: See TracChangeset
for help on using the changeset viewer.