Skip to content

Conversation

@elanasparkle
Copy link
Contributor

No description provided.

@elanasparkle
Copy link
Contributor Author

Sorry I missed the comment. This is in regards to both issues 1093 and 1094. Adding a the Elementor flush when w3 is flushed.

#1093
#1094

@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2025

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 1.28%. Comparing base (dd7dda7) to head (949c9ad).

Files with missing lines Patch % Lines
Util_Environment.php 66.66% 2 Missing ⚠️
CacheFlush.php 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             master   #1118   +/-   ##
========================================
  Coverage      1.28%   1.28%           
- Complexity    19502   19506    +4     
========================================
  Files           633     633           
  Lines         98306   98314    +8     
========================================
+ Hits           1263    1268    +5     
- Misses        97043   97046    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new helper to detect Elementor and integrates Elementor cache clearing into the global flush routine, plus updates documentation.

  • Adds Util_Environment::is_elementor() to check if Elementor is active
  • Extends CacheFlush::flush_all() to clear Elementor’s cache before flushing
  • Updates readme.txt to list a new contributor

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
readme.txt Added "elanasparkle" to Contributors; removed leading hyphen
Util_Environment.php New is_elementor() method to detect Elementor plugin
CacheFlush.php Calls Elementor’s cache clear in flush_all()
Comments suppressed due to low confidence (4)

readme.txt:2

  • The leading hyphen was removed from the Contributors list item, which may break markdown list formatting. Consider restoring the - prefix for consistency.
Contributors: boldgrid, fredericktownes, maxicusc, gidomanders, bwmarkle, harryjackson1221, joemoto, vmarko, jacobd91, avonville1, jamesros161, elanasparkle

Util_Environment.php:377

  • The function is_plugin_active() is defined in wp-admin/includes/plugin.php and may not be available; include it or wrap this call in function_exists('is_plugin_active') to avoid a fatal error.
		if ( is_plugin_active( 'Elementor\Plugin' ) ) {

Util_Environment.php:377

  • The is_plugin_active function expects a plugin file path like 'elementor/elementor.php', not a class name; use class_exists('\Elementor\Plugin') or the correct file path instead.
		if ( is_plugin_active( 'Elementor\Plugin' ) ) {

CacheFlush.php:228

  • Accessing the static $instance property directly can break if it’s protected; use \Elementor\Plugin::instance()->files_manager->clear_cache() and match the correct namespace casing.
				\elementor\Plugin::$instance->files_manager->clear_cache();

@cssjoe cssjoe added this to the 2.8.11 milestone Jun 30, 2025
@elanasparkle
Copy link
Contributor Author

@cssjoe cssjoe merged commit 80a0764 into master Jul 15, 2025
2 checks passed
@cssjoe cssjoe deleted the issue-1094 branch July 15, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Elementor Caching Integration Elementor 404 on CSS With Page Cache

5 participants