# HG changeset patch # User Dan # Date 1229851492 18000 # Node ID 1946d845bb25256e0da150fc12b402c80f181444 # Parent 111fd7a4415c7cb535ed0bf14ed9a88a4276b152 Fixed: update_plugins_cache() is now tolerant of write errors diff -r 111fd7a4415c -r 1946d845bb25 includes/plugins.php --- a/includes/plugins.php Sun Dec 21 04:23:47 2008 -0500 +++ b/includes/plugins.php Sun Dec 21 04:24:52 2008 -0500 @@ -462,7 +462,15 @@ function update_plugins_cache($plugin_info) { global $cache; - return $cache->store('plugins', $plugin_info, -1); + try + { + $result = $cache->store('plugins', $plugin_info, -1); + } + catch ( Exception $e ) + { + return false; + } + return $result; } /**