diff --git a/core/includes/common.inc b/core/includes/common.inc
index c47494e..e83453f 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -4534,6 +4534,13 @@ function drupal_add_library($module, $name, $every_page = NULL) {
 function drupal_get_library($module, $name = NULL) {
   $libraries = &drupal_static(__FUNCTION__, array());
 
+  $cid = 'library_info:' . $module;
+  if (!isset($libraries[$module])) {
+    if ($cache = cache()->get($cid)) {
+      $libraries[$module] = $cache->data;
+    }
+  }
+
   if (!isset($libraries[$module])) {
     // Retrieve all libraries associated with the module.
     $module_libraries = module_invoke($module, 'library_info');
@@ -4553,6 +4560,7 @@ function drupal_get_library($module, $name = NULL) {
       }
     }
     $libraries[$module] = $module_libraries;
+    cache()->set($cid, $data);
   }
   if (isset($name)) {
     if (!isset($libraries[$module][$name])) {
