1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-09 23:50:42 +02:00

Added cache purging animation to README (issue #1).

This commit is contained in:
Chung Leong
2019-02-05 10:33:18 +01:00
parent 4b6520f620
commit d5cde24078
13 changed files with 27 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ This is a complex example with many moving parts. It's definitely not for beginn
* [Back-end services](#back-end-services)
* [Uncached page access](#uncached-page-access)
* [Cached page access](#cached-page-access)
* [Cache invalidation](#cache-invalidation)
* [Cache purging](#cache-purging)
* [Getting started](#getting-started)
* [Docker Compose configuration](#docker-compose-configuration)
* [Nginx configuration](#nginx-configuration)
@@ -68,23 +68,15 @@ The following animation shows how page requests are handled once contents (both
[![Cached page access](docs/img/cached.gif)](docs/cached.md)
## Cache invalidation
## Cache purging
**TODO**
The following animation depicts what happens when a new article is published on WordPress.
[![Cached cache purging](docs/img/purge.gif)](docs/purge.md)
## Getting started
1. Run docker-compose up -d
2. Go to http://localhost:8000/wp-admin/
3. Enter site info
4. Log in
5. Go to Settings > Permalinks
6. Select a scheme other than "Plain" (to enable clean JSON URLs)
7. Go to Plugins page
8. Search for, install, and activate "Proxy Cache Purge" plugin
9. Search for, install, and activate "FakerPress" plugin
docker exec server_wordpress_1 php -r "echo gethostbyname('node');"
**TODO**
## Docker Compose configuration

BIN
docs/img/purge-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
docs/img/purge-10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/img/purge-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
docs/img/purge-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
docs/img/purge-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/img/purge-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
docs/img/purge-6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
docs/img/purge-7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
docs/img/purge-8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
docs/img/purge-9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
docs/img/purge.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

21
docs/purge.md Normal file
View File

@@ -0,0 +1,21 @@
# Cache purging
![Stage 1](img/purge-1.png)
![Stage 2](img/purge-2.png)
![Stage 3](img/purge-3.png)
![Stage 4](img/purge-4.png)
![Stage 5](img/purge-5.png)
![Stage 6](img/purge-6.png)
![Stage 7](img/purge-7.png)
![Stage 8](img/purge-8.png)
![Stage 9](img/purge-9.png)
![Stage 10](img/purge-10.png)