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.
These instructions will get you a copy of the project up and running on your wordpress for development or production.
What things you need to install the software and how to install them
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:
Then check is this file exist on your Aliyun OSS.
Too less resource working on wordpress intergrate with Chinese cloud provider, welcome to any suggestions.
- Aliyun OSS PHP SDK - Used on upload class
- Ruo D. - Initial work - (https://github.com/ruodeng)
This project is licensed under the MIT License - see the LICENSE.md file for details
- 时尚宝典 Funding and running on this site.