wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
687 stars 215 forks source link

Compatibility with Elementor Cloud #5513

Open DahmaniAdame opened 1 year ago

DahmaniAdame commented 1 year ago

Is your feature request related to a problem? Please describe. Elementor has a cloud service to host Elementor-based websites.

Based on their FAQs:

Can I safely leave out any security, backup or optimization plugin? Similar to security, there are multiple types of optimizations. You do not need to install any plugin that helps optimization through caching. However, if you have large media files, for example, you might want to install plugins that improve image loading.

Page cache and other optimizations are built-in.

Describe the solution you'd like We can build an integration to disable all redundant functionalities for WP Rocket to be used with their platforms conflicts free.

We need to have some feedback from their end about that.

Describe alternatives you've considered N/A

Additional context Customer question - https://wp-media.slack.com/archives/C08N8J6VC/p1666162352619589

piotrbak commented 7 months ago

As a first step we'll make sure that their cache is cleared when we clear ours and the opposite.

Acceptance Criteria

  1. The compatibility will be loaded only when we detect their platform is on the production environment ($_SERVER array value [EL_ENV] => prod)
  2. We'll sync the cache only if their caching is enabled ($_SERVER array value [PAGE_CACHING_ENABLED] => true or maybe there's a value in the database, if it's better, we'll need R&D)
  3. When cleaning whole WP Rocket's cache, we'll clear their cache https://developers.elementor.com/docs/hosting/page-cache-purge-everything/
  4. When clearing their whole cache, WP Rocket's cache will be cleared (we need to analyse their code to find the correct action, it's included in Elementor or Elementor PRO)

Credentials are available in BitWarden

DahmaniAdame commented 4 months ago

We also need to check if they have a separate cache for mobile or not. If they don't, it will result in a mismatch on RUCSS and ATF/LCP image optimizations.