Changeset 135 for branches/2.0singleton/bin
- Timestamp:
- Jun 1, 2006 7:42:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0singleton/bin/module_maker/skel/admin.php
r132 r135 58 58 if (getFormData('break_list_cache', false)) { 59 59 // Break the cache because we are changing the list data. 60 $cache-> breakCache($_SERVER['PHP_SELF']);60 $cache->delete($_SERVER['PHP_SELF']); 61 61 } 62 62 … … 258 258 259 259 // Break the cache because we are changing the list data. 260 $cache-> breakCache($_SERVER['PHP_SELF']);260 $cache->delete($_SERVER['PHP_SELF']); 261 261 262 262 // Get the information for this object. … … 288 288 289 289 // Break the cache because we are changing the list data. 290 $cache-> breakCache($_SERVER['PHP_SELF']);290 $cache->delete($_SERVER['PHP_SELF']); 291 291 292 292 %INSERT% … … 314 314 315 315 // Break the cache because we are changing the list data. 316 $cache-> breakCache($_SERVER['PHP_SELF']);316 $cache->delete($_SERVER['PHP_SELF']); 317 317 318 318 %UPDATE% … … 383 383 // without knowing the hash. 384 384 $cache_hash = md5($sql . '|' . $page->total_items); 385 if ($prefs->get Value('cache_hash', $_SERVER['PHP_SELF']) != $cache_hash) {386 $cache-> breakCache($_SERVER['PHP_SELF']);387 $prefs->set Value('cache_hash', $cache_hash, $_SERVER['PHP_SELF']);388 } 389 390 if ($cache-> isCached($_SERVER['PHP_SELF'])) {385 if ($prefs->get('cache_hash', $_SERVER['PHP_SELF']) != $cache_hash) { 386 $cache->delete($_SERVER['PHP_SELF']); 387 $prefs->set('cache_hash', $cache_hash, $_SERVER['PHP_SELF']); 388 } 389 390 if ($cache->exists($_SERVER['PHP_SELF'])) { 391 391 // Get the cached results. 392 $list = $cache->get Cache($_SERVER['PHP_SELF']);392 $list = $cache->get($_SERVER['PHP_SELF']); 393 393 } else { 394 394 // If the list is not already cached, query now. … … 401 401 if (isset($list) && !empty($list)) { 402 402 // Cache the results. 403 $cache-> putCache($list, $_SERVER['PHP_SELF']);403 $cache->set($list, $_SERVER['PHP_SELF']); 404 404 } 405 405 } … … 419 419 420 420 // Break the cache because we are changing the list data. 421 $cache-> breakCache($_SERVER['PHP_SELF']);421 $cache->delete($_SERVER['PHP_SELF']); 422 422 423 423 // Count the ranks with invalid numbers
Note: See TracChangeset
for help on using the changeset viewer.