forked from cloudflare/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs for installing the WordPress plugin
- Loading branch information
Showing
11 changed files
with
91 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# WordPress Page Cache Plugin | ||
Integrates with the [Edge Cache HTML worker](..) script to cache WordPress pages on the edge: | ||
|
||
* Caches HTML on the Cloudflare edge for visitors that aren't logged-in (logged-in users bypass the cache). | ||
* Automatically invalidates the cache when content is changed (including changes to the themes). | ||
|
||
The plugin requires no configuration once installed and activated. As long as the plugin is active and the Worker is running for the domain the edge-caching support is enabled. | ||
|
||
# Plugin Installation | ||
|
||
The plugin is not (yet) available in the WordPress plugin directory and must be uploaded manually by an administrator. | ||
|
||
Log into the WordPress dashboard for the site, go to the "Plugins" section and click on the "Add New" button: | ||
|
||
![Add Plugin](docs/wp-plugin-add-button.png) | ||
|
||
From the gallery page click the "Upload Plugin" button to manually upload the plugin: | ||
|
||
![Upload Plugin](docs/wp-plugin-upload-button.png) | ||
|
||
From the upload page select the "Choose File" button and select the [plugin zip file](https://github.com/cloudflare/worker-examples/raw/master/examples/edge-cache-html/WordPress%20Plugin/cloudflare-page-cache.zip) downloaded from this repository: | ||
|
||
![Select Plugin Zip File](docs/wp-plugin-upload-select.png) | ||
|
||
Select the "Install Now" button to upload and install the plugin: | ||
|
||
![Install Plugin](docs/wp-plugin-install-now.png) | ||
|
||
After the plugin has been uploaded and installed it will still need to be activated. Click the "Activate Plugin" button from the install page. | ||
|
||
![Activate Plugin](docs/wp-plugin-activate.png) | ||
|
||
Once activated the plugin will be listed in the plugins page with a "Deactivate" link below it. At this point the plugin is installed and working. | ||
|
||
![Activated](docs/wp-plugin-installed.png) | ||
|
||
# Updating Plugin | ||
|
||
To update the plugin after it has been installed and activated you first need to deactivate and delete the installed plugin from the plugins page and go through the installation steps again. |
Binary file modified
BIN
+83 Bytes
(100%)
examples/edge-cache-html/WordPress Plugin/cloudflare-page-cache.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions
6
examples/edge-cache-html/WordPress Plugin/cloudflare-page-cache/cloudflare-page-cache.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+26.7 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-activate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.3 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-add-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.6 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-install-now.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+130 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-installed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54.5 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-upload-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.7 KB
examples/edge-cache-html/WordPress Plugin/docs/wp-plugin-upload-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters