diff --git a/src/Plugin.php b/src/Plugin.php index 18796bb..d340957 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -86,7 +86,7 @@ final class Plugin $loader = new FilesystemLoader(WC_LICENSED_PRODUCT_PLUGIN_DIR . 'templates'); $this->twig = new Environment($loader, [ 'cache' => WP_CONTENT_DIR . '/cache/wc-licensed-product/twig', - 'auto_reload' => WP_DEBUG, + 'auto_reload' => true, // Always check for template changes ]); // Add WordPress functions as Twig functions