Skip to content
Snippets Groups Projects
Commit 27654af0 authored by Eric Peterson's avatar Eric Peterson Committed by Daniel Kudwien
Browse files

- #1578618 by iamEAP: Fixed Fatal cache flush failure on major version...

- #1578618 by iamEAP: Fixed Fatal cache flush failure on major version upgrades from 6.x-1.x to 7.x-2.x.
parent 8f8f9b45
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,12 @@
* Implements hook_flush_caches().
*/
function libraries_flush_caches() {
return array('cache_libraries');
// @todo When upgrading from 1.x, update.php attempts to flush caches before
// the cache table has been created.
// @see http://drupal.org/node/1477932
if (db_table_exists('cache_libraries')) {
return array('cache_libraries');
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment