diff --git a/fe_block.module b/fe_block.module
index 0ae5204..f5bfbd4 100644
--- a/fe_block.module
+++ b/fe_block.module
@@ -138,6 +138,10 @@ function fe_block_settings_features_export_render($module_name = '', $data) {
       if (module_exists('i18n_block')) {
         $export_block['i18n_block_language'] = _fe_block_get_block_i18n_block_language($block);
       }
+      // Add ajaxblocks support.
+      if (module_exists('ajaxblocks')) {
+        $export_block['ajaxblocks'] = _fe_block_get_ajaxblocks($block);
+      }
       // Add theme specific settings for every active theme.
       $export_block['themes'] = array();
       foreach ($themes as $theme) {
@@ -504,6 +508,15 @@ function fe_block_settings_features_revert($module_name = NULL) {
     if (module_exists('blockcache_alter')) {
       _fe_block_settings_update_block_cache_alter($block);
     }
+
+    // Apply blockcache_alter settings.
+    if (module_exists('ajaxblocks')) {
+      _fe_block_settings_update_ajaxblocks($block);
+    }
+  }
+
+  if (module_exists('ajaxblocks')) {
+    ajaxblocks_update_cache();
   }
 
   // Clear block cache.
@@ -717,6 +730,68 @@ function _fe_block_settings_update_block_cache_alter($block){
 }
 
 /**
+ * Helper to update the ajaxblocks settings for a specific block.
+ *
+ * @param array $block
+ *   Block definition.
+ */
+function _fe_block_settings_update_ajaxblocks($block){
+
+  $settings = $block['ajaxblocks'];
+  if (isset($settings['is_ajax'])) {
+    if (!empty($settings['cached_roles'])) {
+      $settings['cached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['cached_roles']);
+    }
+    else {
+      $settings['cached_roles'] = '';
+    }
+    if (!empty($settings['uncached_roles'])) {
+      $settings['uncached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['uncached_roles']);
+    }
+    else {
+      $settings['uncached_roles'] = '';
+    }
+    db_merge('ajaxblocks')
+      ->key(
+        array(
+          'block_id' => $block['module'] . '-' . $block['delta'],
+        )
+      )
+      ->fields($settings)
+      ->execute();
+  }
+
+}
+
+/**
+ * Convert a roles array into an ajaxblocks roles string.
+ *
+ * @param array $roles
+ *   Array of key (original role ID) / value (role name) roles.
+ *
+ * @return string
+ *   String containing all new role IDs separated by a white space.
+ */
+function _fe_block_settings_rids_ajaxblocks($roles) {
+
+  $rids = array();
+  foreach ($roles as $rid => $name) {
+    // Anonymous and Registered roles are special.
+    if (($rid == 1) || ($rid == 2)) {
+      $rids[] = $rid;
+    }
+    else {
+      $rid = _fe_block_get_ajaxblocks_roleid($name);
+      if ($rid) {
+        $rids[] = $rid;
+      }
+    }
+  }
+  return implode(' ', $rids);
+
+}
+
+/**
  * Implements hook_features_disable_feature().
  */
 function fe_block_settings_features_disable_feature($module) {
@@ -1212,6 +1287,95 @@ function _fe_block_get_block_i18n_block_language($block) {
 }
 
 /**
+ * Get Ajax from ajaxblocks.
+ *
+ * @param array $block
+ *   Block definition array.
+ *
+ * @return array
+ *   Array of ajax settings for the specified block.
+ */
+function _fe_block_get_ajaxblocks($block) {
+  $sql = db_select('ajaxblocks', 'a')
+    ->condition('block_id', $block['module'] . '-' . $block['delta'])
+    ->fields('a')
+    ->execute();
+  if ($row = $sql->fetchAssoc()) {
+    $cached_roles = array_filter(explode(' ', trim($row['cached_roles'])));
+    $cached_roles_names = array();
+    if ($cached_roles && count($cached_roles) > 0) {
+      foreach ($cached_roles as $rid) {
+        $cached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
+      }
+    }
+    $row['cached_roles'] = $cached_roles_names;
+    $uncached_roles = array_filter(explode(' ', trim($row['uncached_roles'])));
+    $uncached_roles_names = array();
+    if ($uncached_roles && count($uncached_roles) > 0) {
+      foreach ($uncached_roles as $rid) {
+        $uncached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
+      }
+    }
+    $row['uncached_roles'] = $uncached_roles_names;
+    unset($row['block_id']);
+    return $row;
+  }
+  else {
+    return array();
+  }
+}
+
+/**
+ * Get the role name from a role ID.
+ *
+ * @param int $rid
+ *   Role ID.
+ *
+ * @return string
+ *   Role name for the specified role ID. Empty string if not exists.
+ */
+function _fe_block_get_ajaxblocks_rolename($rid) {
+
+  $rids = &drupal_static(__FUNCTION__, array());
+  if (!isset($rids[$rid])) {
+    $role = user_role_load($rid);
+    if ($role) {
+      $rids[$rid] = $role->name;
+    }
+    else {
+      $rids[$rid] = '';
+    }
+  }
+  return $rids[$rid];
+
+}
+
+/**
+ * Get the role ID from a role name.
+ *
+ * @param string $name
+ *   Role name.
+ *
+ * @return int
+ *   Role ID (Zero if role does not exists).
+ */
+function _fe_block_get_ajaxblocks_roleid($name) {
+
+  $names = &drupal_static(__FUNCTION__, array());
+  if (!isset($names[$name])) {
+    $role = user_role_load_by_name($name);
+    if ($role) {
+      $names[$name] = $role->rid;
+    }
+    else {
+      $names[$name] = 0;
+    }
+  }
+  return $names[$name];
+
+}
+
+/**
  * Helper function to convert an older export into the new format.
  *
  * @param array $defaults
diff --git a/features_extra-ajaxblocks_integration-2064135-1.patch b/features_extra-ajaxblocks_integration-2064135-1.patch
new file mode 100644
index 0000000..50020ac
--- /dev/null
+++ b/features_extra-ajaxblocks_integration-2064135-1.patch
@@ -0,0 +1,186 @@
+diff --git a/fe_block.module b/fe_block.module
+index 0ae5204..e3e45df 100644
+--- a/fe_block.module
++++ b/fe_block.module
+@@ -138,6 +138,10 @@ function fe_block_settings_features_export_render($module_name = '', $data) {
+       if (module_exists('i18n_block')) {
+         $export_block['i18n_block_language'] = _fe_block_get_block_i18n_block_language($block);
+       }
++      // Add ajaxblocks support.
++      if (module_exists('ajaxblocks')) {
++        $export_block['ajaxblocks'] = _fe_block_get_ajaxblocks($block);
++      }
+       // Add theme specific settings for every active theme.
+       $export_block['themes'] = array();
+       foreach ($themes as $theme) {
+@@ -504,6 +508,15 @@ function fe_block_settings_features_revert($module_name = NULL) {
+     if (module_exists('blockcache_alter')) {
+       _fe_block_settings_update_block_cache_alter($block);
+     }
++
++    // Apply blockcache_alter settings.
++    if (module_exists('ajaxblocks')) {
++      _fe_block_settings_update_ajaxblocks($block);
++    }
++  }
++
++  if (module_exists('ajaxblocks')) {
++    ajaxblocks_update_cache();
+   }
+ 
+   // Clear block cache.
+@@ -717,6 +730,68 @@ function _fe_block_settings_update_block_cache_alter($block){
+ }
+ 
+ /**
++ * Helper to update the ajaxblocks settings for a specific block.
++ *
++ * @param array $block
++ *   Block definition.
++ */
++function _fe_block_settings_update_ajaxblocks($block){
++
++  $settings = $block['ajaxblocks'];
++  if (isset($settings['is_ajax'])) {
++    if (!empty($settings['cached_roles'])) {
++      $settings['cached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['cached_roles']);
++    }
++    else {
++      $settings['cached_roles'] = '';
++    }
++    if (!empty($settings['uncached_roles'])) {
++      $settings['uncached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['uncached_roles']);
++    }
++    else {
++      $settings['uncached_roles'] = '';
++    }
++    db_merge('ajaxblocks')
++      ->key(
++        array(
++          'block_id' => $block['module'] . '-' . $block['delta'],
++        )
++      )
++      ->fields($settings)
++      ->execute();
++  }
++
++}
++
++/**
++ * Convert a roles array into an ajaxblocks roles string.
++ *
++ * @param array $roles
++ *   Array of key (original role ID) / value (role name) roles.
++ *
++ * @return string
++ *   String containing all new role IDs separated by a white space.
++ */
++function _fe_block_settings_rids_ajaxblocks($roles) {
++
++  $rids = array();
++  foreach ($roles as $rid => $name) {
++    // Anonymous and Registered roles are special.
++    if (($rid == 1) || ($rid == 2)) {
++      $rids[] = $rid;
++    }
++    else {
++      $rid = _fe_block_get_ajaxblocks_roleid($name);
++      if ($rid) {
++        $rids[] = $rid;
++      }
++    }
++  }
++  return implode(' ', $rids);
++
++}
++
++/**
+  * Implements hook_features_disable_feature().
+  */
+ function fe_block_settings_features_disable_feature($module) {
+@@ -1212,6 +1287,85 @@ function _fe_block_get_block_i18n_block_language($block) {
+ }
+ 
+ /**
++ * Get Ajax from ajaxblocks.
++ *
++ * @param array $block
++ *   Block definition array.
++ *
++ * @return array
++ *   Array of ajax settings for the specified block.
++ */
++function _fe_block_get_ajaxblocks($block) {
++  $sql = db_select('ajaxblocks', 'a')
++    ->condition('block_id', $block['module'] . '-' . $block['delta'])
++    ->fields('a')
++    ->execute();
++  if ($row = $sql->fetchAssoc()) {
++    $cached_roles = array_filter(explode(' ', trim($row['cached_roles'])));
++    $cached_roles_names = array();
++    if ($cached_roles && count($cached_roles) > 0) {
++      foreach ($cached_roles as $rid) {
++        $cached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
++      }
++    }
++    $row['cached_roles'] = $cached_roles_names;
++    $uncached_roles = array_filter(explode(' ', trim($row['uncached_roles'])));
++    $uncached_roles_names = array();
++    if ($uncached_roles && count($uncached_roles) > 0) {
++      foreach ($uncached_roles as $rid) {
++        $uncached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
++      }
++    }
++    $row['uncached_roles'] = $uncached_roles_names;
++    unset($row['block_id']);
++    return $row;
++  }
++  else {
++    return array();
++  }
++}
++
++/**
++ * Get the role name from a role ID.
++ *
++ * @param int $rid
++ *   Role ID.
++ *
++ * @return string
++ *   Role name for the specified role ID.
++ */
++function _fe_block_get_ajaxblocks_rolename($rid) {
++
++  $rids = &drupal_static(__FUNCTION__, array());
++  if (!isset($rids[$rid])) {
++    $role = user_role_load($rid);
++    $rids[$rid] = $role->name;
++  }
++  return $rids[$rid];
++
++}
++
++/**
++ * Get the role ID from a role name.
++ *
++ * @param string $name
++ *   Role name.
++ *
++ * @return int
++ *   Role .
++ */
++function _fe_block_get_ajaxblocks_roleid($name) {
++
++  $names = &drupal_static(__FUNCTION__, array());
++  if (!isset($names[$name])) {
++    $role = user_role_load_by_name($name);
++    $names[$name] = $role->rid;
++  }
++  return $names[$name];
++
++}
++
++/**
+  * Helper function to convert an older export into the new format.
+  *
+  * @param array $defaults
diff --git a/features_extra-ajaxblocks_integration-2064135-3.patch b/features_extra-ajaxblocks_integration-2064135-3.patch
new file mode 100644
index 0000000..99b7512
--- /dev/null
+++ b/features_extra-ajaxblocks_integration-2064135-3.patch
@@ -0,0 +1,186 @@
+diff --git a/fe_block.module b/fe_block.module
+index 0ae5204..e3e45df 100644
+--- a/fe_block.module
++++ b/fe_block.module
+@@ -138,6 +138,10 @@ function fe_block_settings_features_export_render($module_name = '', $data) {
+       if (module_exists('i18n_block')) {
+         $export_block['i18n_block_language'] = _fe_block_get_block_i18n_block_language($block);
+       }
++      // Add ajaxblocks support.
++      if (module_exists('ajaxblocks')) {
++        $export_block['ajaxblocks'] = _fe_block_get_ajaxblocks($block);
++      }
+       // Add theme specific settings for every active theme.
+       $export_block['themes'] = array();
+       foreach ($themes as $theme) {
+@@ -504,6 +508,15 @@ function fe_block_settings_features_revert($module_name = NULL) {
+     if (module_exists('blockcache_alter')) {
+       _fe_block_settings_update_block_cache_alter($block);
+     }
++
++    // Apply blockcache_alter settings.
++    if (module_exists('ajaxblocks')) {
++      _fe_block_settings_update_ajaxblocks($block);
++    }
++  }
++
++  if (module_exists('ajaxblocks')) {
++    ajaxblocks_update_cache();
+   }
+ 
+   // Clear block cache.
+@@ -717,6 +730,68 @@ function _fe_block_settings_update_block_cache_alter($block){
+ }
+ 
+ /**
++ * Helper to update the ajaxblocks settings for a specific block.
++ *
++ * @param array $block
++ *   Block definition.
++ */
++function _fe_block_settings_update_ajaxblocks($block){
++
++  $settings = $block['ajaxblocks'];
++  if (isset($settings['is_ajax'])) {
++    if (!empty($settings['cached_roles'])) {
++      $settings['cached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['cached_roles']);
++    }
++    else {
++      $settings['cached_roles'] = '';
++    }
++    if (!empty($settings['uncached_roles'])) {
++      $settings['uncached_roles'] = _fe_block_settings_rids_ajaxblocks($settings['uncached_roles']);
++    }
++    else {
++      $settings['uncached_roles'] = '';
++    }
++    db_merge('ajaxblocks')
++      ->key(
++        array(
++          'block_id' => $block['module'] . '-' . $block['delta'],
++        )
++      )
++      ->fields($settings)
++      ->execute();
++  }
++
++}
++
++/**
++ * Convert a roles array into an ajaxblocks roles string.
++ *
++ * @param array $roles
++ *   Array of key (original role ID) / value (role name) roles.
++ *
++ * @return string
++ *   String containing all new role IDs separated by a white space.
++ */
++function _fe_block_settings_rids_ajaxblocks($roles) {
++
++  $rids = array();
++  foreach ($roles as $rid => $name) {
++    // Anonymous and Registered roles are special.
++    if (($rid == 1) || ($rid == 2)) {
++      $rids[] = $rid;
++    }
++    else {
++      $rid = _fe_block_get_ajaxblocks_roleid($name);
++      if ($rid) {
++        $rids[] = $rid;
++      }
++    }
++  }
++  return implode(' ', $rids);
++
++}
++
++/**
+  * Implements hook_features_disable_feature().
+  */
+ function fe_block_settings_features_disable_feature($module) {
+@@ -1212,6 +1287,85 @@ function _fe_block_get_block_i18n_block_language($block) {
+ }
+ 
+ /**
++ * Get Ajax from ajaxblocks.
++ *
++ * @param array $block
++ *   Block definition array.
++ *
++ * @return array
++ *   Array of ajax settings for the specified block.
++ */
++function _fe_block_get_ajaxblocks($block) {
++  $sql = db_select('ajaxblocks', 'a')
++    ->condition('block_id', $block['module'] . '-' . $block['delta'])
++    ->fields('a')
++    ->execute();
++  if ($row = $sql->fetchAssoc()) {
++    $cached_roles = array_filter(explode(' ', trim($row['cached_roles'])));
++    $cached_roles_names = array();
++    if ($cached_roles && count($cached_roles) > 0) {
++      foreach ($cached_roles as $rid) {
++        $cached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
++      }
++    }
++    $row['cached_roles'] = $cached_roles_names;
++    $uncached_roles = array_filter(explode(' ', trim($row['uncached_roles'])));
++    $uncached_roles_names = array();
++    if ($uncached_roles && count($uncached_roles) > 0) {
++      foreach ($uncached_roles as $rid) {
++        $uncached_roles_names[$rid] = _fe_block_get_ajaxblocks_rolename($rid);
++      }
++    }
++    $row['uncached_roles'] = $uncached_roles_names;
++    unset($row['block_id']);
++    return $row;
++  }
++  else {
++    return array();
++  }
++}
++
++/**
++ * Get the role name from a role ID.
++ *
++ * @param int $rid
++ *   Role ID.
++ *
++ * @return string
++ *   Role name for the specified role ID.
++ */
++function _fe_block_get_ajaxblocks_rolename($rid) {
++
++  $rids = &drupal_static(__FUNCTION__, array());
++  if (!isset($rids[$rid])) {
++    $role = user_role_load($rid);
++    $rids[$rid] = $role->name;
++  }
++  return $rids[$rid];
++
++}
++
++/**
++ * Get the role ID from a role name.
++ *
++ * @param string $name
++ *   Role name.
++ *
++ * @return int
++ *   Role ID.
++ */
++function _fe_block_get_ajaxblocks_roleid($name) {
++
++  $names = &drupal_static(__FUNCTION__, array());
++  if (!isset($names[$name])) {
++    $role = user_role_load_by_name($name);
++    $names[$name] = $role->rid;
++  }
++  return $names[$name];
++
++}
++
++/**
+  * Helper function to convert an older export into the new format.
+  *
+  * @param array $defaults
