Changeset 686


Ignore:
Timestamp:
11/28/2011 08:43:23 PM (6 months ago)
Author:
ofer
Message:

Fix ticket #177 by suppressing said errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/wp/transposh_db.php

    r667 r686  
    9090            logger('apc', 5); 
    9191        } elseif (function_exists('xcache_get')) { 
    92             $rc = xcache_isset($key); 
     92            $rc = @xcache_isset($key); 
    9393            if ($rc === false) return false; 
    94             $cached = xcache_get($key); 
     94            $cached = @xcache_get($key); 
    9595            logger('xcache', 5); 
    9696        } elseif (function_exists('eaccelerator_get')) { 
     
    124124            $rc = apc_store($key, $translated, $ttl); 
    125125        } elseif (function_exists('xcache_set')) { 
    126             $rc = xcache_set($key, $translated, $ttl); 
     126            $rc = @xcache_set($key, $translated, $ttl); 
    127127        } elseif (function_exists('eaccelerator_put')) { 
    128128            $rc = eaccelerator_put($key, $translated, $ttl); 
     
    150150            apc_delete($key); 
    151151        } elseif (function_exists('xcache_unset')) { 
    152             xcache_unset($key); 
     152            @xcache_unset($key); 
    153153        } elseif (function_exists('eaccelerator_rm')) { 
    154154            eaccelerator_rm($key); 
     
    166166            apc_clear_cache('user'); 
    167167        } elseif (function_exists('xcache_unset_by_prefix')) { 
    168             xcache_unset_by_prefix(); 
     168            @xcache_unset_by_prefix(); 
    169169        } 
    170170        //TODO - clean on eaccelerator is not so clean... 
Note: See TracChangeset for help on using the changeset viewer.