As the Codex suggests:
Essentially the same as set_transient() but works network wide when
using WP Multisite.One difference is that the transient name should be 40 characters or
less in length. Also, while set_transient() sets transients that have
an expiration time to not autoload, all transients added with
set_site_transient
will auto-load at all times.
In other words, the fundamental difference is in the auto-loading and since transients might be serialized, you could risk breaking things if referring to a blog (in MU) which has different settings/url/etc.
So the short answer is:
-
use set_transient for single blogs
-
use set_site_transient when you need something for ALL blogs.
Example of stored transients:
Related Posts:
- Transients API and multisite
- Site admin in a network install can’t edit users?
- is_front_page() malfunction?
- Shared table across network
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- Ban SiteNames Multisite
- WP MultiSite API – Create new sites
- Multisite – sub-subfolders for certain blogs
- Multisite behind Varnish
- How do I know if a user has a blog in WordPress Multisite?
- Configure WordPress to read from database only, never write
- How does WordPress connect sites and the wp_users table?
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Suppress subdirectory from WordPress Multisite primary URL
- Has anyone experience w/ WordPress (MultiSite) hidden users (possibly hacked)?
- Why wordpress multisite redirect to wp-signup if site exists?
- Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]
- Installing multisite network admin on sub-domain
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Multiple domains with different child themes on one installation?
- Staging setup for multisite installation
- Changing wp-content to other name? Multisite set up
- Redirect users on logout
- Multisite: I have a gap in my blogs. How to add the missing one?
- Rest API Multisite Site List?
- Create rewriterules for different domains in htaccess file with WP multisite
- Domain name in a WordPress Network
- How to change user starting role in WordPress MultiSite?
- get_post_type_object() does not work with switch_to_blog()
- How to change the parent Domain Name in Multisites Project?
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- Multi-Site Subdomain: Show master site under subdomain if no sub site exists
- Register existing user on another site in a multisite network?
- WordPress MultiSite Theme
- Can i import a site (plugins, database, images) etc. Into an existing wordpress multisite?
- WordPress Multisite + Erros with URLS and ADMIN
- Create Custom Multisite User Role to Reduce Capabilities
- Importing XML didn’t finish, site is now inaccessible
- WordPress multisite – Bitnami
- One blog inside another
- Change Default WordPress MU Blog
- wordpress multisite permalink structure: mostly subdomains but not all
- Bulk Move Users from one site to another within a network ( Multisite )
- Multisite – getting a 404 for additional site created using subdomain install
- muliple wordpress multisite installs on the same sever
- how to create wordpress network with multiple wordpress installations
- get_last_updated() not working – multisite loop
- Multiple sites with independent users
- Programmatically creating site in a network
- What happens when someone goes to the root URL in WordPress Multisite?
- Migrate single site to Multisites with plugins, cPanel and already working subdomains
- Multisite WP-API json v2 : can i fetch all comments on all sites with a single query?
- how to install wordpress HyperDB
- Multisite Redirect for Home Page Only
- 404 not working on main site on multisite
- Is it possible to create /sub/sub domain based multiste?
- Change language for each website using multisite
- add_blog_option blog ID
- Cannot see dropdown shortcut to site dashboard in WordPress network why?
- How can I install WordPress as blog provider , stable?
- Automatic creation of mutisite blog outside of the admin
- List all sites created in network and get the language used for each site
- Trying to Decide Between Reverse-proxy and Multisite
- Automatically add a registered user on the wordpress multisite network even to just one other site
- Redirecting specific sites to HTTP in WordPress Multisite
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- WordPress Multisite VMware copy for dev use not allowing loggin
- MULTISITE: Password issue and Error Cant access site
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Running hosted multisite version of wordpress
- Multisite,half the way
- Create new multisite from existing and keep domain?
- WordPress Multisite: Login to all subsites at once
- How to mapping a WordPress MultiSite Network Subdirectories to new domain with all subsites
- Admin Ajax returns “0 200 OK server error..” in Multi-site sub-site
- WordPress Multisite: an official and definitive way to enable https ? (http to https)
- How to implement this subdirectory mapping in multisite?
- Multi-site Installation in WordPress | Security & Future Migrations
- Get the latest 3 posts across the network
- WordPress MU with subdomain
- How do i get custom metabox data from each multisite blog?
- Multisite login and redirect to users main blog,
- Synchronize wordpress site between two different servers
- What dictates whether a plugin will be available to a site in a multisite install?
- How do I setup WordPress Multisite in it’s own directory?
- Configuring Multisite with subdomains
- How do I remove ‘www.’ from all internal links in self-hosted multisite?
- How do I make a copy of WordPress to other folder
- MU Domain mapping
- WordPress multisite with subdirectories always redirects to mainsite
- Avoid landing page redirects issue in wordpress multisite
- Can i use the same content in two websites? one is the main website and one is directory website
- WordPress Multisite
- Single installation with sub-domains for admin and separate domains for sites
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite
- Multisite subdomain microsite on secondary domain