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`.
403
403
$ wp transient delete --expired
404
404
Success: 12 expired transients deleted from the database.
405
405
406
+ # Delete expired site transients.
407
+ $ wp transient delete --expired --network
408
+ Success: 1 expired transient deleted from the database.
409
+
406
410
# Delete all transients.
407
411
$ wp transient delete --all
408
412
Success: 14 transients deleted from the database.
409
413
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
+
410
421
411
422
412
423
### wp transient get
@@ -496,15 +507,15 @@ wp transient type
496
507
~~~
497
508
498
509
Indicates whether the transients API is using an object cache or the
499
- options table .
510
+ database .
500
511
501
512
For a more complete explanation of the transient cache, including the
502
513
network|site cache, please see docs for ` wp transient ` .
503
514
504
515
** EXAMPLES**
505
516
506
517
$ wp transient type
507
- Transients are saved to the wp_options table .
518
+ Transients are saved to the database .
508
519
509
520
## Installing
510
521
You can’t perform that action at this time.
0 commit comments