Cloudflare

Descrição

O que este plugin pode fazer por você

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.

Recursos adicionais

  • Reescrita do cabeçalho para evitar um loop de redirecionamento quando o SSL Universal do Cloudflare está ativo

  • Altere as configurações do Cloudflare de dentro do próprio plugin, sem precisar navegar até o painel em cloudflare.com. Você pode alterar as configurações de eliminação do cache, nível de segurança, Sempre Online e otimização de imagem

  • Ver análises como total de visitantes, largura de banda economizada e ameaças bloqueadas

  • Suporte ao HTTP2/Server Push

Imagens de tela

Instalação

Pré-requisitos

Make sure your PHP version is 7.2 or higher.

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

FAQ

Preciso de uma conta do Cloudflare para usar o plugin?

Yes, on install and activation of the plugin, first time users will be asked to enter their email address (used to sign-up for an account at cloudflare.com) and either an API Token or their API key. This is needed to support all the features offered by the plugin.

Quais configurações serão aplicadas quando eu clicar em “Aplicar as configurações padrão” no plugin para WordPress do Cloudflare?

Você pode revisar as configurações recomendadas que são aplicadas aqui.

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

O plugin funciona se eu tiver o Varnish habilitado?

Sim, o Cloudflare funciona com, e ajuda a acelerar o seu site ainda mais, se tiver o Varnish habilitado.

Avaliações

7 junho, 2023
seletalah pakai plugin ini, view per artikel naik tapi setiap bulan ranking website di similarweb terus menurun.
10 abril, 2023 1 resposta
I want to start by saying that I love Cloudflare. Its one of the most innovative companies in the world and the services are top notch. Highly recommend, and I will continue to be a customer for a very long time.But this plugin is not it. If you're reading this, you've been warned. I like to think I'm a semi competent wordpress user, but this plugin made me feel like I mentally sat on a cactus. It is a pain in the ass and will cause so many problems that will have you searching the desert for what could have possibly broken your website, only to find that this plugin sticks its fingers in so many unnecessary things and walks away spot free because the issues won't show in your debug logs. If you want to use APO just activate from the web console and save yourself from the coma you're about to send yourself into. On the plus side, I learned how to debug some complicated issues and nearly reverse engineer wordpress... so thanks for that.
3 abril, 2023
This plugin repaired the loops that kept me from loggin into wp. Please maintain the plugin!
7 março, 2023
This plugin is one of the worst plugins I've ever been in. Very complicated to understand, not for everyone. Have read the other negative comments here and I have to agree completely. This plugin does not work straight out of the box, far too many intricacies, incomprehensible, yes completely useless with many ifs and buts. Steer clear is my word and try something else.
Leia todas as 161 avaliações

Colaboradores e desenvolvedores

“Cloudflare” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Registro de alterações

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

Corrigido

  • Fixed Cache Purges failing #266

3.5.0 – 2020-06-26

Corrigido

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

Adicionado

  • 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

Corrigido

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

3.4.0 – 2019-08-29

Adicionado

  • Added support for API Token authentication.

3.3.2 – 2017-12-12

Corrigido

  • Bug in cf-ip-rewrite

Adicionado

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

3.3.1 – 2017-6-29

Corrigido

  • Potential bug by using $_GET.

3.3.0 – 2017-6-29

Adicionado

  • 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.

Alterado

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

Corrigido

  • 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

Corrigido

  • Bug where accounts which had more than 20 zones would not show up correctly.

3.2.0 – 2017-3-1

Adicionado

  • Bypass Cache By Cookie functionality.
  • HTTP/2 Server Push functionality (disabled by default).

Alterado

  • Lowered the plugin size.
  • Automatic Cache Management feature includes purging taxonomies.
  • Automatic Cache Management feature supports sites which use both HTTP and HTTPS.

Corrigido

  • Admin bar disappearing from the plugin.
  • Bug where spinner was loading forever.
  • Bug where the backend errors where not being shown in the frontend.
  • Issues where IE11 was not working properly.

3.1.1 – 2016-11-17

Alterado

  • Mudança na barra administrativa para trás d eliminação automática do cache.

3.1.0 – 2016-11-17

Adicionado

  • Adicionada a capacidade de automaticamente eliminar o cache quando um post é publicado, editado ou excluído. (Graças a brandomeniconi e mike503)
  • Adicionada a capacidade de trabalhar com o plugin WordPress MU Domain Mapping. (Graças a brandomeniconi)

Alterado

  • Mudança na interface do usuário para se parecer mais como o painel de cloudflare.com.
  • Descrição do plugin alterada.
  • Desabilitada a exibição na barra administrativa do WordPress e ao editar links de posts para evitar problemas para os usuários usando cache de HTML

Corrigido

  • Corrigido o erro onde a exigência das pastas de fornecedor não estava funcionando.
  • Corrigido um bug onde os arquivos estáticos eram armazenados em cache que causou problemas para atualizar o plugin.
  • Corrigidas as dependências que causaram problemas com o plugin verificador de compatibilidade do PHP.

3.0.6 – 2016-10-6

Adicionado

  • Adicionada a capacidade de alternar para o modo de desenvolvimento.

Corrigido

  • Corrigido o erro onde o seletor de zona ativa não estava funcionando corretamente.

Alterado

  • Recursos compactados para reduzir o tamanho do plugin.
  • A Logomarca do Cloudflare foi atualizado.

3.0.5 – 2016-09-28

Corrigido

  • Corrigido o erro onde a reescrita do SSL flexível estava impedindo o gancho de página de configurações de carregar.

3.0.4 – 2016-09-27

Adicionado

  • Capacidade para os usuários alternarem reescritas de HTTPS automáticas (habilitado por padrão, resolve a maioria dos dos erros mistos de conteúdo).

Corrigido

  • Corrigido um problema onde a versão PHP baixa estava recebendo um erro de sintaxe.
  • Corrigido o problema onde alguns usuários usando SSL flexível não conseguiam fazer login no wp-admin.
  • Corrigido um bug onde o seletor de zona ativa não paginava em toda a lista de zonas.
  • Corrigido um problema onde a configuração de otimização de imagem estava sendo exibida incorretamente.
  • Corrigido um bug no Analytics onde os dados de visitantes únicos não estava exibindo com precisão.

Alterado

  • Ativos compactados para reduzir o tamanho do plugin.
  • A lógica de carregamento dos ganchos foi reescrita para torná-lo mais simples e legível.

3.0.3 – 2016-09-21

Corrigido

  • Corrigido um problema onde alguns domínios foram incorretamente propagados para o seletor de domínios
  • Corrigido um problema onde o Web Application Firewall acidentalmente disparava regras de ataque de RFI
  • Corrigido um problema onde otimização de imagem não estava sendo habilitada para planos de Cloudflare Pro e superiores

3.0.2 – 2016-09-16

Corrigido

  • Desabilitado o HTTP/2 Server Push que estava levando a erros de 520 e 502 em alguns sites.

3.0.1 – 2016-09-16

Corrigido

  • Corrigido o HTTP/2 Server Push que estava excedendo o limite de cabeçalho Cloudflare e causava 520 erros.
  • Corrigida a mensagem de alerta no HTTP/2 Server Push.

3.0.0 – 2016-09-15

Adicionado

  • Adicionada a aplicação em um clique das configurações recomendadas específicas do WordPress
  • Adicionado a capacidade de eliminar o cache do Cloudflare
  • Integrado com o gerenciamento de cache do WordPress para automaticamente limpar o cache de Cloudflare ao atualizar a aparência do site
  • Adicionada a capacidade de alterar as configurações do Cloudflare (modo Sempre Online, estou sendo atacado, nível de segurança, otimização de imagem, Web Application Firewall)
  • Adicionada a análise mostrando solicitações armazenadas em cache, largura de banda utilizada, visitantes únicos, ameaças bloqueadas
  • Adicionada a reescrita do cabeçalho para evitar um loop de redirecionamento quando Universal SSL do Cloudflare está ativado
  • Adicionado suporte a HTTP/2 Server Push
  • Adicionado o suporte ao PHP 5.3+

Removido

  • Removida a reescrita do protocolo HTTPS
  • Removido o envio de comentários de spam
  • Removida a capacidade para alternar o modo de desenvolvimento

Alterado

  • A interface do usuário foi atualizada
  • Começou a oferecer suporte ao WordPress 3.4+ em vez de 2.8+ porque dependemos da API de opções do WordPress