Changeset 60524 for trunk/src/wp-includes/class-wp-feed-cache-transient.php
- Timestamp:
- 07/30/2025 11:01:58 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-feed-cache-transient.php
r59141 r60524 13 13 * @since 2.8.0 14 14 * @since 6.7.0 Now properly implements the SimplePie\Cache\Base interface. 15 * @since 6.9.0 Switched to Multisite's global cache via the `*_site_transient()` functions. 15 16 */ 16 17 #[AllowDynamicProperties] … … 85 86 } 86 87 87 set_ transient( $this->name, $data, $this->lifetime );88 set_ transient( $this->mod_name, time(), $this->lifetime );88 set_site_transient( $this->name, $data, $this->lifetime ); 89 set_site_transient( $this->mod_name, time(), $this->lifetime ); 89 90 return true; 90 91 } … … 98 99 */ 99 100 public function load() { 100 return get_ transient( $this->name );101 return get_site_transient( $this->name ); 101 102 } 102 103 … … 109 110 */ 110 111 public function mtime() { 111 return get_ transient( $this->mod_name );112 return get_site_transient( $this->mod_name ); 112 113 } 113 114 … … 120 121 */ 121 122 public function touch() { 122 return set_ transient( $this->mod_name, time(), $this->lifetime );123 return set_site_transient( $this->mod_name, time(), $this->lifetime ); 123 124 } 124 125 … … 131 132 */ 132 133 public function unlink() { 133 delete_ transient( $this->name );134 delete_ transient( $this->mod_name );134 delete_site_transient( $this->name ); 135 delete_site_transient( $this->mod_name ); 135 136 return true; 136 137 }
Note: See TracChangeset
for help on using the changeset viewer.