/** * Invalidates the $mla_galleries or $galleries array and cached values * * Called from MLAQuery::mla_flush_mla_galleries, which handles conditional * loading of this file. * * @since 1.00 * * @param string name of the gallery's cache/option variable * * @return void */ public static function mla_flush_mla_galleries_handler($option_name) { switch ($option_name) { case MLACore::MLA_GALLERY_IN_TUNING: self::$galleries = NULL; break; case MLACore::MLA_MLA_GALLERY_IN_TUNING: self::$mla_galleries = NULL; break; default: // ignore everything else } // switch }
/** * 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); /* * If MLAReferences isn't loaded there is nothing else to do */ if (class_exists('MLAReferences')) { MLAReferences::mla_flush_mla_galleries_handler($option_name); } }