Changeset 17972
- Timestamp:
- 10/06/08 15:37:50 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/application.php
r17903 r17972 711 711 $this->_status = MIDCOM_STATUS_CLEANUP; 712 712 713 // Shutdown content-cache (ie flush content to user :) before possibly slow DBA watches 714 // done this way since it's slightly less hacky than calling shutdown and then mucking about with the cache->_modules etc 715 $this->cache->content->_finish_caching(); 716 713 717 $this->componentloader->process_pending_notifies(); 714 718 … … 728 732 } 729 733 734 // Shutdown rest of the caches 730 735 $this->cache->shutdown(); 731 736 trunk/midcom/midcom.core/midcom/services/cache/module/content.php
r17900 r17972 943 943 function _finish_caching($etag=null) 944 944 { 945 // make it safe to call this multiple times 946 // done this way since it's slightly less hacky than mucking about with the cache->_modules etc 947 static $run_count = 0; 948 ++$run_count; 949 if ($run_count > 1) 950 { 951 return; 952 } 953 945 954 if ( $this->_no_cache 946 955 || $this->_live_mode)
