includes/plugins.php
changeset 769 1946d845bb25
parent 724 af6a618e5c94
child 791 e6094f56f941
equal deleted inserted replaced
768:111fd7a4415c 769:1946d845bb25
   460    */
   460    */
   461   
   461   
   462   function update_plugins_cache($plugin_info)
   462   function update_plugins_cache($plugin_info)
   463   {
   463   {
   464     global $cache;
   464     global $cache;
   465     return $cache->store('plugins', $plugin_info, -1);
   465     try
       
   466     {
       
   467       $result = $cache->store('plugins', $plugin_info, -1);
       
   468     }
       
   469     catch ( Exception $e )
       
   470     {
       
   471       return false;
       
   472     }
       
   473     return $result;
   466   }
   474   }
   467   
   475   
   468   /**
   476   /**
   469    * Loads the plugins cache if any.
   477    * Loads the plugins cache if any.
   470    */
   478    */