Skip to content

Commit b22de3c

Browse files
committed
Update package readme
1 parent 8fcbde7 commit b22de3c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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

498509
Indicates whether the transients API is using an object cache or the
499-
options table.
510+
database.
500511

501512
For a more complete explanation of the transient cache, including the
502513
network|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

0 commit comments

Comments
 (0)