Wordpress plugin: Aliyun OSS CDN

One of our client want to create host in China mainland, and the static resource via CDN.

The W3TC is great plugin, unfortunately it doesn't support most CDN provider in China. 

So we write this wordpress plugin which uploads files to Aliyun OSS and use CDN to cache static resource in China.

 

Getting Started

These instructions will get you a copy of the project up and running on your wordpress for development or production.

Prerequisites

What things you need to install the software and how to install them

php-curl

Installing

Simple upload this plugin to wordpress and active it.

Fill the information from Aliyun OSS/CDN.

Running the tests

The plugin will execute hourly, and upload 50 items each time. If you want test it, you can use the purge function input the resource like:

wp-content/test.js

Then check is this file exist on your Aliyun OSS.

Deployment

Too less resource working on wordpress intergrate with Chinese cloud provider, welcome to any suggestions.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Client

15