From e371620a15eb124ef3ffe0d3e92b622fa79a0b54 Mon Sep 17 00:00:00 2001 From: beccamarkowitz <157301320+beccamarkowitz@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:50:43 +0300 Subject: [PATCH] Update widget-output-caching.md --- src/widgets/widget-output-caching.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/widget-output-caching.md b/src/widgets/widget-output-caching.md index 93776b4a..00196159 100644 --- a/src/widgets/widget-output-caching.md +++ b/src/widgets/widget-output-caching.md @@ -1,4 +1,4 @@ -## Widget Output Caching +## Widget Output Caching / Element Caching @@ -184,3 +184,10 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base { ``` This widget generates different HTML output for logged-in users and anonymous users. We can't cache the widget output as the cached HTML may be displayed for the wrong users. + +### Testing +When testing the performance improvements, please make sure to use different types of widgets - not multiple instances of the same widget. The more widgets on the page, and the more different types of widgets, the larger the impact. + +Next, you’ll need to “Regenerate CSS files & data” from WP Admin > Elementor > Tools. + +Then, in your speed comparison tool, compare the first run (rendered data) to the second run (cached data) and you should see the impact on the server memory usage and TTFB.