Cache Enabler is the first WP plugin to allow you to serve WebP images without JavaScript and also fully supports srcset since WP 4.4.
Cache Enabler是第一个WP插件,允许您在不使用JavaScript的情况下提供WebP图像,并且自WP 4.4起就完全支持srcset。
WebP is a new image format that provides lossless and lossy compression for images on the web.
WebP是一种新的图像格式,可为Web上的图像提供无损和有损压缩。
WebP lossless images are 26% smaller
WebP无损图像要要小26%
in size compared to PNGs.
与PNG相比,尺寸更小。 p>
blockquote>
How does the caching work?
缓存如何工作? h4>
This plugin requires minimal setup time and allows you to easily take advantage of the benefits that come from using WordPress caching.
此插件需要最少的设置时间,使您可以轻松利用使用WordPress缓存带来的好处。 p>
The WordPress Cache Enabler has the ability to create 2 cached files.
WordPress缓存启动器可以创建2个缓存文件。
One is plain HTML and the other version is gzipped (gzip level 9).
一个是纯HTML,另一个是gzip(gzip 9级)。
These static files are then used to deliver content faster to your users without any database lookups or gzipping as the files are already pre-compressed.
这些静态文件然后用于将内容更快地交付给您的用户,而无需进行任何数据库查找或gzip压缩,因为这些文件已经过预压缩。 p>
When combined with Optimus, the WordPress Cache Enabler allows you to easily deliver WebP images.
与Optimus结合使用时,WordPress Cache Enabler可让您轻松交付WebP图像。
The plugin will check your upload directory for any JPG or PNG images that have an equivalent WebP file.
该插件将检查您的上传目录中是否有具有等效WebP文件的JPG或PNG图像。
If there is, the URI of these image will be cached in a WebP static file by Cache Enabler.
如果存在,则这些图像的URI将由“缓存启动器”缓存在WebP静态文件中。
It is not required for all images to be converted to WebP when the “Create an additional cached version for WebP image support” option is enabled.
启用“为WebP图像支持创建其他缓存的版本”选项时,不需要将所有图像都转换为WebP。
This will not break any images that are not in WebP format.
这不会破坏任何非WebP格式的图像。
The plugin will deliver images that do have a WebP equivalent and will fall back to the JPG or PNG format for images that don’t.
该插件将提供确实具有WebP等效功能的图像,而对于不具有WebP功能的图像,则将使用JPG或PNG格式。 p>
Website
网站 h4>
ul>
System Requirements
系统要求 h4>
- PHP >=5.6
- PHP> = 5.6 li>
- WordPress >=4.6
- WordPress> = 4.6 li>
ul>
Contribute
贡献 h4>
- Anyone is welcome to contribute to the plugin on GitHub.
- 欢迎任何人为 GitHub 上的插件做出贡献。 li>
- Please merge (squash) all your changes into a single commit before you open a pull request.
- 在打开拉取请求之前,请先将所有更改合并(压缩)为单个提交。 li>
ul>
Maintainer
维护者 h4>