Changeset 16515

Show
Ignore:
Timestamp:
05/30/08 17:56:50 (6 months ago)
Author:
adrenalin
Message:

Patched loudly yelling cache module, when try/catch fails. Using
manual file check instead.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/services/cache/backend/flatfile.php

    r15892 r16515  
    114114        } 
    115115         
    116         try { 
     116        // Note: try below failed for some reason, checking manually if the file exists instead 
     117        if (!file_exists("{$this->_dirname}{$key}")) 
     118        { 
     119            return; 
     120        } 
     121         
     122        try 
     123        { 
    117124            unlink("{$this->_dirname}{$key}"); 
    118125        } 
    119126        catch(Exception $e) 
    120127        { 
    121             /* Do nothing, be quite */ 
     128            /* Do nothing, be quiet */ 
    122129        } 
    123130    }