Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Cloudflare

Описание

Что этот плагин может сделать для вас

Automatic Platform Optimization (APO)

Speed up your WordPress site by up to 300% with Cloudflare’s Automatic Platform Optimization (APO) plugin. APO allows Cloudflare to serve your entire WordPress site from our edge network of over 250+ data centers worldwide ensuring fast & reliable performance for your visitors no matter where they are.

Optimizing your WordPress site with multiple plugins can be overwhelming. Take your WordPress site’s performance to the next level by switching to a single plugin for CDN, intelligent caching, and other key WordPress optimizations with Cloudflare (APO). Visit our announcement blog to learn more about APO.

What makes APO different from other caching plugins?

The key differentiating factor between Cloudflare APO and other traditional page caching and CDN solutions is its ability to directly cache static HTML at Cloudflare’s edge. Every other plugin and CDN will cache your static assets (images, javascript, CSS), but none help you cache the actual content on your site (the HTML) using a massive edge network like Cloudflare’s.

APO intelligently caches your HTML pages and will automatically purge content from the cache that you update, so users will always see the latest content without compromising the performance of pages that haven’t been recently updated

What you get with Cloudflare APO

APO is a $5 add-on with Cloudflare’s free plan and comes with an unlimited amount of subdomains. With APO you also get to leverage many of the other benefits of Cloudflare such as Free DNS, Free Automated SSL Certificates, Free DDoS Mitigation, and more. APO is free for all paid plan users so if you have Cloudflare Pro or Business already you can just turn it on. You can compare all our plans here.

Protect your WordPress site with Cloudflare’s Web Application Firewall (WAF)

Cloudflare’s WAF is available on all our paid plans and comes with built-in rulesets, specifically tailored to mitigate WordPress threats and vulnerabilities. These security rules are regularly updated by our team of experts. At the flip of a switch, you’ll have your WAF up and running without any difficult adjustments to your site. With over 26 million internet properties under our protection, you can sleep easy knowing Cloudflare has your back.

Дополнительные возможности

  • Заголовок переписывает, чтобы предотвратить цикл переадресации, когда включен универсальный SSL Cloudflare

  • Измените настройки Cloudflare внутри самого плагина, не перейдя на панель управления cloudflare.com. Вы можете изменить настройки для очистки кэша, уровня безопасности, Always Online и оптимизации изображений

  • Просмотр аналитики, такой как общее количество посетителей, сохраненная полоса пропускания и блокированные угрозы

  • Поддержка HTTP2 / Server Push

Скриншоты

Установка

Предусловие

Убедитесь, что ваша версия PHP составляет 5.3.10 или выше

Speed Up Your WordPress Site with Cloudflare APO

Getting Started

Setting up Cloudflare APO

If you’re currently utilizing Cloudflare’s free plan you can add APO to your plan for just $5/month. If you are on Cloudflare’s Pro Plan Cloudflare APO is already included in your subscription. We recommend you start with our APO developer documentation which includes all the information you need to get APO up and running.

How to check if APO is working
Using Uptrends you can verify if Cloudflare APO is working by checking to see if APO response headers are present. You can follow along in this video.

APO Support Resource can be found here

Get Started with Cloudflare SSL here

View our Cloudflare APO blog post here

Часто задаваемые вопросы

Нужна ли мне учетная запись Cloudflare для использования плагина?

Да, при установке и активации плагина первым пользователям будет предложено ввести свой адрес электронной почты (используемый для регистрации для учетной записи на cloudflare.com) и их пользовательский ключ API. Это необходимо для поддержки всех функций, предлагаемых плагином.

Какие настройки применяются, когда я нажимаю «Применить настройки по умолчанию» в плагине WordPress от Cloudflare?

Вы можете просмотреть рекомендуемые параметры, которые применяются здесь.

What do I do if Cloudflare does not detect the WordPress plugin for use with APO (Automatic Platform Optimization)

APO works best when the WordPress plugin is used. We do not recommend using APO without the plugin installed. If you face issues with Cloudflare detecting the plugin then follow these steps:
1. Go to Cloudflare WordPress plugin
2. Disable APO in the card
3. Enable APO in the card (will set proper settings for APO feature)
4. Clear any server cache used via other plugins (WP Rocket being an example)
5. Verify that your origin starts serving response header “cf-edge-cache: cache,platform=wordpress”

You can read more about APO with WordPress here

Работает ли плагин, если у меня есть Varnish?

Да, Cloudflare работает и помогает ускорить ваш сайт еще больше, если у вас включен Varnish.

Отзывы

18.04.2024
The plugin doesn't have many options interesting unless you have a Cloudflare premium plan to use APO. That looks like to be the most interesting feature of it. It would be at least useful if it had integration with Turnstile to properly apply on website.
13.10.2023
I have installed this plugin and then I subscribed to the Cloudflare APO offer. This saved me a lot of money and energy because normally without cloudflare APO, i would have been forced to move my website from germany to the USA. So, now everything is working like a charm Javascript minification. I have only 1 JS file left for my entire wordpress installation. The cookies are still there and it returns the right ones. I don't know how they succeed in this black magic. this plugin is better than super cache for cloudflare because when you use super cache for cloudflare, cookies are stripped from http headers. Also, when you are logged in APO still caches it while super cache for cloudflare bypass it. You don't need to use cloudflare rules along with this plugin. If you activate APO, cloudflare applies all the settings for you. you don't need touch anything. so from what I understand, you must only use the features from cloudflare like minification and cache from cloudflare. Uninstall wp super cache or any other cache and uninstall autoptimize. Let cloudflare manage the minification and cache of your website.
24.08.2023
Customers on our Free plans can only submit tickets for billing, account, and registrar issues.Cloudflare support If I paid for the ‘APO’, well, I’m not on the ‘Free plan’, do you agree? Honestly, I feel completely offended. I don’t recommend Cloudflare’s ‘APO’, you’re on your own.
08.08.2023
This plugin is fine, it does the job. Those that give low ratings have no idea what they are doing and of course they break their websites.
Посмотреть 171 отзыв

Участники и разработчики

«Cloudflare» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Cloudflare» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

4.12.7 — 2024-04-02

  • Upgrade cloudflare-plugin-frontend to v3.10.0 (#542)

4.12.6 — 2024-03-04

  • Upgrade cloudflare-plugin-frontend to v3.9.0 (#537)

4.12.5 — 2024-03-04

  • Upgrade cloudflare-plugin-frontend to v3.8.0 (#535)
  • Retrieve the WordPress domain only from the active zone (#532)

4.12.4 — 2024-01-19

  • Fix «creation of dynamic property is deprecated» notice

4.12.3 — 2024-01-04

  • Prevent usage of cloudflare_proxy action on /admin-ajax endpoint for non-Administrator users

4.12.2 — 2023-07-18

  • Revert the incorrect fix to Cloudflare Partners endpoint

4.12.1 — 2023-07-18

  • Fix Cloudflare Partners endpoint

4.12.0 — 2023-06-01

  • Updated plugin to be tested on WordPress 6.2

4.11.0 — 2022-07-27

  • Restrict access to sensitive files using .htaccess configuration.
  • Added cloudflare_use_cache hook to determine when to cache.
  • Allow arrays with url keys to be passed into cache purge requests.
  • Handle getZoneSettings not returning a key and throwing an unset array key error.

4.10.1 — 2022-06-06

  • Fix logic for ignoring cache purge operations.

4.10.0 — 2022-06-03

  • Ignore feed URLs in cache purge operations unless a cache override is in place.

4.9.1 — 2022-05-04

  • Handle empty URL arrays for purging.
  • Swap publicly_queryable for is_post_type_viewable when determining if the post is public.
  • Update always_use_https check to work with the API lacking a «value» for the key.
  • purgeCacheByRelevantURLs now accepts either an array or single ID

4.8.3 — 2022-03-22

  • When a zone has «Always Use HTTPS» enabled, only send HTTPS based URLs. HTTP URLs will never be hit and never present in the cache.

4.8.2 — 2022-03-18

  • Retag 4.8.1 with correct version in user agent

4.8.1 — 2022-03-18

  • Loosen domain check for cache purge calls to allow subdomains

4.8.0 — 2022-03-15

  • Updated supported WordPress version to 5.9
  • Replace Guzzle with wp_remote_request for remote calls
  • Update cache purge logic to improve efficiency of what we send to the remote service

4.7.0 — 2021-10-28

  • Merge cloudflare-plugin-backend into Cloudflare-WordPress repository

4.6.0 — 2021-10-11

  • Make frontend use native await/async
  • Purge cache on mobile if APO Cache By Device Type

4.5.1 — 2021-06-03

  • Rewrite PHP 8 bootstrap files for symfony/polyfill to be PHP 7 compatible

4.5.0 — 2021-06-02

  • Document unintuitive transition_post_status WP hook behavior
  • Only purge public taxonomies while clearing any empty values from the list
  • Better handling of cases where wp_get_attachment_image_src is false and not a usable array
  • Support activation of IDN domains
  • Improve development experience by shipping a Docker Compose file with more tooling and documentation

4.4.0 — 2021-03-23

  • Purge posts when transitioning to or from the ‘published’ state
  • Remove conditional logic for subdomain, allow to activate APO feature on the subdomain
  • Further work to autocorrect APO settings

4.3.0 — 2021-03-19

  • Sanitise sensitive HTTP header logs
  • Stop sending cfCRSFToken to remote API
  • Add warnings for incorrectly configured Automatic Platform Optimization
  • Purge posts that go from public to private
  • Purge pagination for first 3 pages

4.2.2 — 2021-03-08

  • Fix warning for file_get_contents of composer.json

4.2.1 — 2021-03-05

  • Deprecate REST dashboard analytics

4.2.0 — 2021-03-02

  • Allow configuration of Cloudflare credentials via environment variables
  • Prevent purging of cache before comments have been moderated
  • Remove unnecessary symfony/yaml dependency

4.1.0 — 2021-02-11

  • Removed development dependencies from vendor directory
  • Update CLOUDFLARE_MIN_PHP_VERSION to match the plugin requirements

4.0.0 — 2021-02-09

  • Drop support for PHP 5.6, 7.0 and 7.1

3.8.10 — 2021-01-29

  • Add Jacob to maintainers list

3.8.9 — 2021-01-14

  • Revert Add pagination purging

3.8.8 — 2021-01-13

  • Add pagination purging

3.8.7 — 2020-12-07

  • Purge taxonomy feed URLs
  • Fix changing APO settings (cf, wordpress, plugin) when running on subdomain
  • Fix setting hostname override

3.8.6 — 2020-11-19

  • Add subdomain support for APO card

3.8.5 — 2020-10-15

  • Added automatic purge cache on new comment

3.8.4 — 2020-10-13

  • Added composer’s type=wordpress-plugin for Bedrock users
  • Fixed typo in readme.txt
  • Fix modify header exception thrown during wp-cron
  1. Cloudflare Plugin= 3.8.3 — 2020-10-05 =
  • Fixed setting all APO values properly for correct dashboard rendering

3.8.2 — 2020-10-02

  • re-relase broken version, no changes

3.8.1 — 2020-10-02

  • Fixed typo in config.js(on) that resulted in warning #292
  • Check for array indicies are set before using #278

3.8.0 — 2020-10-01

  • Added APO support
  • Renamed Automatic Cache Management card to Auto Purge Content On Update

3.7.0 — 2020-09-25

  • Bump cloudflare-plugin-backend v2.3.0 and cloudflare-plugin-frontend v3.1.0 #283

3.6.0 — 2020-09-17

  • Bump cloudflare-plugin-backend #276

3.5.1 — 2020-07-02

Фиксированная

  • Fixed Cache Purges failing #266

3.5.0 — 2020-06-26

Фиксированная

  • Disable HTTP/2 Push on wp-admin pages #214
  • Fix PHP 7.4 notice #256

Добавлено

  • Purge attachment URLs #208
  • Purge URLs on page/post update #206
  • Turn on IPv6 by default #229
  • Add constants for better control HTTP/2 Server Push #213
  • Allow custom actions for purge url and purge everything actions #212

3.4.1 — 2019-08-29

Фиксированная

  • Updated list of contributors.
  • Updated tested WordPress version to latest (5.2.2).

3.4.0 — 2019-08-29

Добавлено

  • Added support for API Token authentication.

3.3.2 — 2017-12-12

Фиксированная

  • Bug in cf-ip-rewrite

Добавлено

  • Added a new filter cloudflare_purge_by_url allowing users to have better control on automatically purged urls.

3.3.1 — 2017-6-29

Фиксированная

  • Potential bug by using $_GET.

3.3.0 — 2017-6-29

Добавлено

  • Added a new Splash Screen
  • Added userConfig.js file allowing custom configurations.
  • Added logs in debug mode for Automatic Cache Purge.
  • Added logs for oversized Server Push HTTP headers.

Измененный

  • Automatic Cache Purge now purges Autoptimize by everything rather than by URL.
  • Updated IP Ranges

Фиксированная

  • Bug where domains which had capital letters not working.
  • Bug where Automatic Cache Purge couldn’t purge front page.
  • Bug related to work with IWP.
  • Bug where if PHP is compiled with ipv6-disable flag, it crashed the site.

3.2.1 — 2017-3-14

Фиксированная

  • Ошибка, если учетные записи, в которых было более 20 зон, отображались неправильно.

3.2.0 — 2017-3-1

Добавлено

  • Обходный кэш по функциям Cookie.
  • Функциональность HTTP / 2 Server Push (по умолчанию отключена).

Измененный

  • Снизился размер плагина.
  • Функция автоматического управления кэшем включает в себя таксономии очистки.
  • Функция автоматического управления кэшем поддерживает сайты, которые используют как HTTP, так и HTTPS.

Фиксированная

  • Панель администратора исчезает из плагина.
  • Ошибка, где прядильщик загружался вечно.
  • Ошибка, при которой ошибки бэкэнд не отображаются во внешнем интерфейсе.
  • Проблемы, в которых IE11 работает неправильно.

3.1.1 — 2016-11-17

Измененный

  • Перемещена панель администратора за автоматическим переключением очистки кэша.

3.1.0 — 2016-11-17

Добавлено

  • Добавлена ​​возможность автоматического удаления кеша при публикации, изменении или удалении сообщения. (Благодаря brandomeniconi и mike503)
  • Добавлена ​​возможность работы с плагином доменного плагина WordPress MU. (Благодаря брендоникони)

Измененный

  • Изменен пользовательский интерфейс, чтобы больше походить на облачную панель cloudflare.com.
  • Изменено описание плагина.
  • Отключено отображение панели администратора WordPress и редактирование сообщения, чтобы избежать проблем с кешированием для пользователей, использующих кэширование HTML.

Фиксированная

  • Исправлена ​​ошибка, при которой папки поставщиков не работали.
  • Исправлена ​​ошибка, в которой были кэшированы статические файлы, что вызвало проблемы с обновлением плагина.
  • Исправлены зависимости, которые вызывали проблемы с плагином PHP Compatibility Checker.

3.0.6 — 2016-10-6

Добавлено

  • Добавлена ​​возможность переключения режима разработки.

Фиксированная

  • Исправлена ​​ошибка, когда выпадающее меню активной зоны работало неправильно.

Измененный

  • Сжатые ресурсы для уменьшения размера плагина.
  • Обновлен логотип Cloudflare.

3.0.5 — 2016-09-28

Фиксированная

  • Исправлена ​​ошибка, при которой refactored Flexible SSL fix вызывало невозможность загрузки страницы настроек.

3.0.4 — 2016-09-27

Добавлено

  • Возможность для пользователей переключать автоматические перематывания HTTPS (включена по умолчанию, решает для большинства ошибок смешанного содержимого).

Фиксированная

  • Исправлена ​​проблема с низкой версией PHP, в которой была получена синтаксическая ошибка.
  • Исправлена ​​проблема, когда некоторые пользователи использовали гибкий SSL, где не удалось войти в wp-admin.
  • Исправлена ​​ошибка, при которой переключатель активной зоны не разбивался на страницы по всему списку зон.
  • Исправлена ​​ошибка, при которой параметр «Оптимизация изображения» отображался некорректно.
  • Исправлена ​​ошибка в Google Analytics, где данные Uniques Visitors не отображались точно.

Измененный

  • Сжатые активы уменьшают размер плагина.
  • Логическая логика загрузки крюков реорганизована, чтобы сделать ее более простой и удобочитаемой.

3.0.3 — 2016-09-21

Фиксированная

  • Исправлена ​​ошибка, при которой некоторые домены некорректно распространялись в раскрывающемся списке выбора домена
  • Исправлена ​​ошибка, при которой брандмауэр веб-приложений случайно запускал правила атаки RFI
  • Исправлена ​​проблема, когда оптимизация изображения не была включена для планов Pro и выше Cloudflare

3.0.2 — 2016-09-16

Фиксированная

  • Отключено HTTP / 2 Server Push, что привело к ошибкам 520 и 502 для некоторых веб-сайтов.

3.0.1 — 2016-09-16

Фиксированная

  • Исправлено HTTP / 2 Server Push, превышающее ограничение заголовка Cloudflare, вызвавшее 520 ошибок.
  • Исправлено предупреждение в HTTP / 2 Server Push.

3.0.0 — 2016-09-15

Добавлено

  • Добавлено одно нажатие на приложение из рекомендуемых настроек WordPress
  • Добавлена ​​возможность очистки кэша Cloudflare
  • Интегрировано с управлением кешем WordPress, чтобы автоматически очистить кэш Cloudflare при обновлении внешнего вида сайта
  • Добавлена ​​возможность изменять настройки Cloudflare (всегда в режиме онлайн, я под атакой, оптимизация изображений, уровень безопасности, брандмауэр веб-приложений)
  • Добавлена ​​аналитика, показывающая запросы на кеширование, используемая полоса пропускания, уникальные посетители, блокированные угрозы
  • Добавлена ​​переадресация заголовка, чтобы предотвратить цикл переадресации, когда включен универсальный SSL Cloudflare
  • Добавлена ​​поддержка HTTP / 2 Server Push
  • Добавлена ​​поддержка PHP 5.3+

Удалено

  • Удалена перезапись протокола HTTPS
  • Удалена отправка спам-комментариев
  • Удалена возможность включения / выключения режима разработки

Измененный

  • Обновленный пользовательский интерфейс
  • Начал поддерживать WordPress 3.4+ вместо 2.8+, потому что мы зависим от API-параметров WordPress .