Commit 3db6d52a authored by Steven Jones's avatar Steven Jones Committed by Neil Hastings
Browse files

Issue #2324575 by Steven Jones: Fixed Static cache in bean_block_info unclearable.

parent 2a1aff2d
Loading
Loading
Loading
Loading
+2 −1
Changes for bean.module: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -412,6 +412,7 @@ function bean_bean_cache_clear() {
  drupal_static_reset('bean_get_all_beans');
  drupal_static_reset('bean_fetch_plugin_info');
  drupal_static_reset('bean_load_plugin_class');
  drupal_static_reset('bean_block_info');

  // Flush caches.
  cache_clear_all('bean_plugins', 'cache');
@@ -827,7 +828,7 @@ function bean_view_callback($entities, $view_mode, $langcode, $entity_type) {
 * Implements hook_block_info().
 */
function bean_block_info() {
  static $blocks = array();
  $blocks = &drupal_static(__FUNCTION__, array());

  if (!empty($blocks)) {
    return $blocks;