Changeset 17972

Show
Ignore:
Timestamp:
10/06/08 15:37:50 (2 months ago)
Author:
rambo
Message:

forward port r17971

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/application.php

    r17903 r17972  
    711711        $this->_status = MIDCOM_STATUS_CLEANUP; 
    712712 
     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 
    713717        $this->componentloader->process_pending_notifies(); 
    714718 
     
    728732        } 
    729733 
     734        // Shutdown rest of the caches 
    730735        $this->cache->shutdown(); 
    731736 
  • trunk/midcom/midcom.core/midcom/services/cache/module/content.php

    r17900 r17972  
    943943    function _finish_caching($etag=null) 
    944944    { 
     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 
    945954        if (   $this->_no_cache 
    946955            || $this->_live_mode)