Skip to content

Commit a7ae09a

Browse files
Docs: update readmes
1 parent 58d8b11 commit a7ae09a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ Replace the path with your own.
7676

7777
Yes. It handles all post-types the same way.
7878

79+
**Q. How can I purge cache automatically after WordPress/plugin/theme updates?**
80+
81+
Yes. By default, Nginx Helper does **not** purge cache on WordPress core, plugin, or theme updates.
82+
If you want this behavior, you can enable it using a filter:
83+
84+
`add_filter( 'rt_wp_nginx_helper_enable_auto_purge_on_any_update', '__return_true' );`
85+
86+
Once enabled, cache will be purged automatically whenever WordPress core, plugins, or themes are updated.
87+
If left disabled (default), Nginx Helper will instead show an admin notice after updates, reminding you to purge cache manually.
88+
7989
**Q. How do I know my Nginx config is correct for fastcgi purging?**
8090

8191
Manually purging any page from the cache, by following instructions in the previous answer.

readme.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ Replace the path with your own.
6969

7070
Yes. It handles all post-types the same way.
7171

72+
**Q. How can I purge cache automatically after WordPress/plugin/theme updates?**
73+
74+
Yes. By default, Nginx Helper does **not** purge cache on WordPress core, plugin, or theme updates.
75+
If you want this behavior, you can enable it using a filter:
76+
77+
`add_filter( 'rt_wp_nginx_helper_enable_auto_purge_on_any_update', '__return_true' );`
78+
79+
Once enabled, cache will be purged automatically whenever WordPress core, plugins, or themes are updated.
80+
If left disabled (default), Nginx Helper will instead show an admin notice after updates, reminding you to purge cache manually.
81+
7282
**Q. How do I know my Nginx config is correct for fastcgi purging?**
7383

7484
Manually purging any page from the cache, by following instructions in the previous answer.

0 commit comments

Comments
 (0)