Linux 软件免费装

Tiny CDN

开发者 szepe.viktor
更新时间 2018年10月6日 17:15
捐献地址: 去捐款
PHP版本: 4.0 及以上
WordPress版本: 4.9
版权: GPLv2

标签

performance content delivery network optimization CDN

下载

0.1.4 0.1.5 0.1.6 0.1.3

详情介绍:

Use an origin pull CDN with very few lines of code. Pull requests are welcome on GitHub. This plugins has no user interface. Set /wp-includes (optional) and /wp-content (optional) CDN URL-s in your wp-config.php. // No trailing slash! define( 'TINY_CDN_INCLUDES_URL', 'https://d2aaaaaaaaaaae.cloudfront.net/wp-includes' ); define( 'TINY_CDN_CONTENT_URL', 'https://d2aaaaaaaaaaae.cloudfront.net/wp-content' );

安装:

This section describes how to install the plugin and get it working.
  1. Upload tiny-cdn.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

How to configure?

Hook into these filters before template_redirect time. // Disable rewriting add_filter( 'tiny_cdn_disable', '__return_true' ); // Don't rewrite for these users add_filter( 'tiny_cdn_capability', function () { return 'edit_pages'; } ); // This is a regular expression to exclude single files add_filter( 'tiny_cdn_excludes', function () { return '#.php#'; } );

更新日志:

0.1.6 0.1.5 0.1.4 0.1.3