public static function delete_missing_actions($old_actions)
 {
     if (!empty($old_actions)) {
         foreach ($old_actions as $old_id) {
             wp_delete_post($old_id);
         }
         FrmAppHelper::cache_delete_group('frm_actions');
     }
 }
 /**
  * Clear entry caching
  * Called when an entry is changed
  *
  * @since 2.0.5
  */
 public static function clear_cache()
 {
     FrmAppHelper::cache_delete_group('frm_entry');
     FrmAppHelper::cache_delete_group('frm_item');
     FrmAppHelper::cache_delete_group('frm_entry_meta');
     FrmAppHelper::cache_delete_group('frm_item_meta');
 }
 public static function delete_form_transient($form_id)
 {
     $form_id = absint($form_id);
     delete_transient('frm_form_fields_' . $form_id . 'excludeinclude');
     delete_transient('frm_form_fields_' . $form_id . 'includeinclude');
     delete_transient('frm_form_fields_' . $form_id . 'includeexclude');
     delete_transient('frm_form_fields_' . $form_id . 'excludeexclude');
     global $wpdb;
     $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->options . ' WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s', '_transient_timeout_frm_form_fields_' . $form_id . 'ex%', '_transient_frm_form_fields_' . $form_id . 'ex%', '_transient_timeout_frm_form_fields_' . $form_id . 'in%', '_transient_frm_form_fields_' . $form_id . 'in%'));
     FrmAppHelper::cache_delete_group('frm_field');
     $form = FrmForm::getOne($form_id);
     if ($form && $form->parent_form_id) {
         self::delete_form_transient($form->parent_form_id);
     }
 }
 /**
  * Delete the action cache when a form action is created, deleted, or updated
  *
  * @since 2.0.5
  */
 public static function clear_cache()
 {
     FrmAppHelper::cache_delete_group('frm_actions');
 }
 private function clear_cache()
 {
     $default_post_atts = array('post_type' => FrmStylesController::$post_type, 'post_status' => 'publish', 'numberposts' => 99, 'orderby' => 'title', 'order' => 'ASC');
     FrmAppHelper::delete_cache_and_transient(serialize($default_post_atts), 'frm_styles');
     FrmAppHelper::cache_delete_group('frm_styles');
     FrmAppHelper::delete_cache_and_transient('frmpro_css');
 }