PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.13.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.13.0
2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 All 54 releases
← All changes | includes/seo/class-llms-txt-manager.php +6 -16 2.10.0 → 2.13.0 View file →
@@ -801,11 +801,14 @@
801 801 * Ask the common page/CDN cache layers to drop their copy of /llms.txt.
802 802 *
803 803 * A cached response outlives a republish, so without this a mode switch or
804 804 * a content change keeps serving the old document (and, on the static path,
805 - * the old headers). Every call is guarded — a site running none of these
806 - * simply gets the action hook, which integrations can use.
805 + * the old headers).
807 806 *
807 + * The layer-by-layer work moved to Cache_Purger in 2.10.1, once alt-text
808 + * writes needed the same thing (#763). The llms.txt-specific hook stays
809 + * here because it names this document, which a generic URL purge cannot.
810 + *
808 811 * @since 2.1.0
809 812 *
810 813 * @return void
811 814 */
@@ -821,22 +824,9 @@
821 824 * @param string $url Public URL of the llms.txt document.
822 825 */
823 826 do_action('thinkrank_llms_txt_updated', $url);
824 827
825 - // LiteSpeed Cache and Nginx Helper both listen on their own actions.
826 - // These are third-party hook names we fire, not ours to prefix.
827 - do_action('litespeed_purge_url', $url); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
828 - do_action('rt_nginx_helper_purge_all'); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
829 -
830 - if (function_exists('rocket_clean_files')) {
831 - rocket_clean_files([$url]);
832 - }
833 - if (function_exists('w3tc_flush_url')) {
834 - w3tc_flush_url($url);
835 - }
836 - if (function_exists('wpsc_delete_url_cache')) {
837 - wpsc_delete_url_cache($url);
838 - }
828 + Cache_Purger::purge_urls([$url]);
839 829 }
840 830
841 831 /**
842 832 * Unpublish llms.txt: drop the stored document and any physical file.