Ignore cached file in Customizer preview

This commit is contained in:
Tetrakern 2024-05-17 21:10:38 +02:00
parent e2db5a1f3a
commit 2cfe230c3a

View File

@ -3076,6 +3076,7 @@ function fictioneer_get_static_template_part( $slug, $expiration = null, $name =
// Use default function if...
if (
! get_option( 'fictioneer_enable_static_partials' ) ||
is_customize_preview() ||
fictioneer_caching_active( "get_template_part_for_{$slug}" )
) {
get_template_part( $slug, $name, $args );