/** 
  * Runs the update for a specific version.
  *
  * @since 1.2.8
  * @access private
  * @return void
  */
 private static function run($saved_version)
 {
     // Update to 1.2.8 or greater.
     if (version_compare($saved_version, '1.2.8', '<')) {
         self::v_1_2_8();
     }
     // Update to 1.4.6 or greater.
     if (version_compare($saved_version, '1.4.6', '<')) {
         self::v_1_4_6();
     }
     // Clear all asset cache.
     FLBuilderModel::delete_all_asset_cache();
 }
 /** 
  * Clears the builder cache for all sites on a network.
  *
  * @since 1.5.3
  * @access private
  * @return void
  */
 private static function clear_cache_for_all_sites()
 {
     global $blog_id;
     global $wpdb;
     // Save the original blog id.
     $original_blog_id = $blog_id;
     // Get all blog ids.
     $blog_ids = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs}");
     // Loop through the blog ids and clear the cache.
     foreach ($blog_ids as $id) {
         switch_to_blog($id);
         FLBuilderModel::delete_all_asset_cache();
     }
     // Revert to the original blog.
     switch_to_blog($original_blog_id);
 }