Changeset 3841518
- Timestamp:
- 12/03/2026 04:02:47 AM (less than one hour ago)
- Location:
- recruit-so-simple-jobs
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.1 (copied) (copied from recruit-so-simple-jobs/trunk )
-
tags/1.1.1/readme.txt (modified) (3 diffs)
-
tags/1.1.1/recruit-so-simple-jobs.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/recruit-so-simple-jobs.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recruit-so-simple-jobs/tags/1.1.1/readme.txt
r3838583 r3841518 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 = 1.1.1 = 101 * Fixed the Rank Math sitemap index sometimes leaving out the jobs sitemap: the sitemap cache is now cleared immediately when jobs change, and once after every plugin update. 102 100 103 = 1.1.0 = 101 104 * Added a unique page title, meta description, canonical link and Open Graph/Twitter tags to every job page, with a configurable title format. … … 149 152 == Upgrade Notice == 150 153 154 = 1.1.1 = 155 Fixes job pages missing from the Rank Math sitemap index. 156 151 157 = 1.1.0 = 152 158 Adds SEO titles, descriptions, social tags, sitemap entries and fixed Google for Jobs data for job pages, with Rank Math and Yoast SEO support. -
recruit-so-simple-jobs/tags/1.1.1/recruit-so-simple-jobs.php
r3838583 r3841518 4 4 * Plugin URI: https://help.recruitsosimple.com/documentation/integrations/wordpress-plugin 5 5 * Description: Display jobs from a Recruit So Simple JSON feed and post applications back to Recruit So Simple. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 19 19 20 20 final class Recruit_So_Simple_Jobs { 21 const VERSION = '1.1. 0';21 const VERSION = '1.1.1'; 22 22 const OPTION_NAME = 'rss_jobs_options'; 23 23 const FEED_TRANSIENT = 'rss_jobs_feed_cache'; … … 1603 1603 * Clear Rank Math's and Yoast's cached sitemaps when the job URLs change 1604 1604 * (or on the first feed load after updating the plugin), as both cache 1605 * sitemap XML and would otherwise keep serving the old list. 1605 * sitemap XML and would otherwise keep serving the old list. The plugin 1606 * version is part of the hash so every upgrade clears the caches once. 1606 1607 */ 1607 1608 private function maybe_invalidate_seo_sitemaps() { 1608 $hash = md5( (string) wp_json_encode( $this->sitemap_entries() ) );1609 $hash = md5( self::VERSION . '|' . (string) wp_json_encode( $this->sitemap_entries() ) ); 1609 1610 if ( get_option( self::SITEMAP_HASH_OPTION ) === $hash ) { 1610 1611 return; … … 1615 1616 } 1616 1617 1618 /** 1619 * Both plugins only queue the clear and flush the queue on `shutdown`. 1620 * Rank Math registers that shutdown hook only in admin and cron requests, 1621 * so a clear queued during a front-end page view was silently dropped and 1622 * the index kept omitting the jobs sitemap. Flush the queue immediately. 1623 */ 1617 1624 private function invalidate_seo_sitemaps() { 1618 1625 if ( class_exists( '\RankMath\Sitemap\Cache_Watcher' ) && method_exists( '\RankMath\Sitemap\Cache_Watcher', 'invalidate' ) ) { 1619 1626 \RankMath\Sitemap\Cache_Watcher::invalidate( 'rssjobs' ); 1627 if ( is_callable( array( '\RankMath\Sitemap\Cache_Watcher', 'clear_queued' ) ) ) { 1628 \RankMath\Sitemap\Cache_Watcher::clear_queued(); 1629 } 1620 1630 } 1621 1631 if ( class_exists( 'WPSEO_Sitemaps_Cache' ) && method_exists( 'WPSEO_Sitemaps_Cache', 'invalidate' ) ) { 1622 1632 WPSEO_Sitemaps_Cache::invalidate( 'rssjobs' ); 1633 if ( is_callable( array( 'WPSEO_Sitemaps_Cache', 'clear_queued' ) ) ) { 1634 WPSEO_Sitemaps_Cache::clear_queued(); 1635 } 1623 1636 } 1624 1637 } -
recruit-so-simple-jobs/trunk/readme.txt
r3838583 r3841518 5 5 Tested up to: 7.0 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 98 98 == Changelog == 99 99 100 = 1.1.1 = 101 * Fixed the Rank Math sitemap index sometimes leaving out the jobs sitemap: the sitemap cache is now cleared immediately when jobs change, and once after every plugin update. 102 100 103 = 1.1.0 = 101 104 * Added a unique page title, meta description, canonical link and Open Graph/Twitter tags to every job page, with a configurable title format. … … 149 152 == Upgrade Notice == 150 153 154 = 1.1.1 = 155 Fixes job pages missing from the Rank Math sitemap index. 156 151 157 = 1.1.0 = 152 158 Adds SEO titles, descriptions, social tags, sitemap entries and fixed Google for Jobs data for job pages, with Rank Math and Yoast SEO support. -
recruit-so-simple-jobs/trunk/recruit-so-simple-jobs.php
r3838583 r3841518 4 4 * Plugin URI: https://help.recruitsosimple.com/documentation/integrations/wordpress-plugin 5 5 * Description: Display jobs from a Recruit So Simple JSON feed and post applications back to Recruit So Simple. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 19 19 20 20 final class Recruit_So_Simple_Jobs { 21 const VERSION = '1.1. 0';21 const VERSION = '1.1.1'; 22 22 const OPTION_NAME = 'rss_jobs_options'; 23 23 const FEED_TRANSIENT = 'rss_jobs_feed_cache'; … … 1603 1603 * Clear Rank Math's and Yoast's cached sitemaps when the job URLs change 1604 1604 * (or on the first feed load after updating the plugin), as both cache 1605 * sitemap XML and would otherwise keep serving the old list. 1605 * sitemap XML and would otherwise keep serving the old list. The plugin 1606 * version is part of the hash so every upgrade clears the caches once. 1606 1607 */ 1607 1608 private function maybe_invalidate_seo_sitemaps() { 1608 $hash = md5( (string) wp_json_encode( $this->sitemap_entries() ) );1609 $hash = md5( self::VERSION . '|' . (string) wp_json_encode( $this->sitemap_entries() ) ); 1609 1610 if ( get_option( self::SITEMAP_HASH_OPTION ) === $hash ) { 1610 1611 return; … … 1615 1616 } 1616 1617 1618 /** 1619 * Both plugins only queue the clear and flush the queue on `shutdown`. 1620 * Rank Math registers that shutdown hook only in admin and cron requests, 1621 * so a clear queued during a front-end page view was silently dropped and 1622 * the index kept omitting the jobs sitemap. Flush the queue immediately. 1623 */ 1617 1624 private function invalidate_seo_sitemaps() { 1618 1625 if ( class_exists( '\RankMath\Sitemap\Cache_Watcher' ) && method_exists( '\RankMath\Sitemap\Cache_Watcher', 'invalidate' ) ) { 1619 1626 \RankMath\Sitemap\Cache_Watcher::invalidate( 'rssjobs' ); 1627 if ( is_callable( array( '\RankMath\Sitemap\Cache_Watcher', 'clear_queued' ) ) ) { 1628 \RankMath\Sitemap\Cache_Watcher::clear_queued(); 1629 } 1620 1630 } 1621 1631 if ( class_exists( 'WPSEO_Sitemaps_Cache' ) && method_exists( 'WPSEO_Sitemaps_Cache', 'invalidate' ) ) { 1622 1632 WPSEO_Sitemaps_Cache::invalidate( 'rssjobs' ); 1633 if ( is_callable( array( 'WPSEO_Sitemaps_Cache', 'clear_queued' ) ) ) { 1634 WPSEO_Sitemaps_Cache::clear_queued(); 1635 } 1623 1636 } 1624 1637 }
Note:
See TracChangeset
for help on using the changeset viewer.