“Generating CSS” is not related to wp fastest cache.
Are you sure?
Because the message isn’t there when I disable WP Fastest Cache.
yes, I am sure. you can search the keyword in the source code of wp fastest cache.
Mmm I see, you’re right. I found the string in the source code of the Divi theme.
I’ll contact them to see what they say. Sorry for bothering you with this.
By the way, I also found some code related to WPFC. Could you please have look if that makes sense? Thanks!
// Disable several plugins which do not honor DONOTCACHEPAGE (set in PageResource.php).
if ( ! headers_sent() ) {
// Sending no-cache header should prevent CDNs from caching the first request.
header( ‘Cache-Control: no-store, no-cache’ );
// Disable SiteGround Optimizer Dynamic Cache.
header( ‘X-Cache-Enabled: False’ );
}
// Disable LiteSpeed Cache.
$reason = esc_html__( ‘Generating CSS’, ‘et_builder’ );
do_action( ‘litespeed_control_set_nocache’, $reason );
// Disable WP Fastest Cache.
if ( class_exists( ‘WpFastestCacheCreateCache’ ) ) {
// This Plugin has no hook/API to disable cache programmatically….
// The only way we can do this is by setting the exclude_current_page_text public property
// to a non empty value… except the class instance is not made available anywhere in the code….
// However, the instance also adds itself to the wp hook so we can find it by scanning the list
// of all registered actions.
$hooks = et_()->array_get( $GLOBALS, ‘wp_filter.wp.10’, [] );
if ( is_array( $hooks ) ) {
foreach ( $hooks as $key => $hook ) {
if (
isset( $hook[‘function’] ) &&
is_array( $hook[‘function’] ) &&
is_a( $hook[‘function’][0], ‘WpFastestCacheCreateCache’ )
) {
$wp_fastest_cache = $hook[‘function’][0];
$wp_fastest_cache->exclude_current_page_text = “<!– $reason –>”;
break;
}
}
}
}
Please disable the “Static CSS File Generation” via -> Divi Theme Options – builder – advanced
Thanks. That ‘fixes’ but has negative impact on site speed. But no worries, I’ll take that to the Divi developers.
–
What I am curious about though is your thought on the other part in their code. I mean, WP Fastes cache does support DONOTCACHEPAGE
// Disable several plugins which do not honor DONOTCACHEPAGE (set in PageResource.php).
// Disable WP Fastest Cache.
if ( class_exists( ‘WpFastestCacheCreateCache’ ) ) {
// This Plugin has no hook/API to disable cache programmatically….
// The only way we can do this is by setting the exclude_current_page_text public property
// to a non empty value… except the class instance is not made available anywhere in the code….
// However, the instance also adds itself to the wp hook so we can find it by scanning the list
// of all registered actions.
$hooks = et_()->array_get( $GLOBALS, ‘wp_filter.wp.10’, [] );
if ( is_array( $hooks ) ) {
foreach ( $hooks as $key => $hook ) {
if (
isset( $hook[‘function’] ) &&
is_array( $hook[‘function’] ) &&
is_a( $hook[‘function’][0], ‘WpFastestCacheCreateCache’ )
) {
$wp_fastest_cache = $hook[‘function’][0];
$wp_fastest_cache->exclude_current_page_text = “<!– $reason –>”;
break;
}
}
}
}