File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -403,10 +403,21 @@ network|site cache, please see docs for `wp transient`.
403403 $ wp transient delete --expired
404404 Success: 12 expired transients deleted from the database.
405405
406+ # Delete expired site transients.
407+ $ wp transient delete --expired --network
408+ Success: 1 expired transient deleted from the database.
409+
406410 # Delete all transients.
407411 $ wp transient delete --all
408412 Success: 14 transients deleted from the database.
409413
414+ # Delete all site transients.
415+ $ wp transient delete --all --network
416+ Success: 2 transients deleted from the database.
417+
418+ # Delete all transients in a multsite.
419+ $ wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
420+
410421
411422
412423### wp transient get
@@ -496,15 +507,15 @@ wp transient type
496507~~~
497508
498509Indicates whether the transients API is using an object cache or the
499- options table .
510+ database .
500511
501512For a more complete explanation of the transient cache, including the
502513network|site cache, please see docs for ` wp transient ` .
503514
504515** EXAMPLES**
505516
506517 $ wp transient type
507- Transients are saved to the wp_options table .
518+ Transients are saved to the database .
508519
509520## Installing
510521
You can’t perform that action at this time.
0 commit comments