/** * Invalidates the $mla_galleries or $galleries array and cached values * * @since 1.00 * * @param string name of the gallery's cache/option variable * * @return void */ public static function mla_flush_mla_galleries($option_name) { delete_transient(MLA_OPTION_PREFIX . 't_' . $option_name); switch ($option_name) { case MLAOptions::MLA_GALLERY_IN_TUNING: self::$galleries = null; break; case MLAOptions::MLA_MLA_GALLERY_IN_TUNING: self::$mla_galleries = null; break; default: // ignore everything else } // switch }