Compare commits

...

2 Commits

Author SHA1 Message Date
9084120ab3 Release 3.90.1 2022-06-16 10:54:09 +01:00
a060f0bda2 Disable auto_reload only in non development environments
[MAILPOET-4439]
2022-06-16 09:58:36 +01:00
5 changed files with 13 additions and 6 deletions

View File

@ -18,7 +18,8 @@ class Renderer {
public function __construct(
bool $debuggingEnabled,
string $cachePath,
TwigFileSystem $fileSystem
TwigFileSystem $fileSystem,
bool $autoReload = false
) {
$this->debuggingEnabled = $debuggingEnabled;
$this->cachePath = $cachePath;
@ -27,7 +28,7 @@ class Renderer {
[
'cache' => new TwigFileSystemCache($cachePath),
'debug' => $this->debuggingEnabled,
'auto_reload' => true,
'auto_reload' => $autoReload,
]
);

View File

@ -12,10 +12,12 @@ class RendererFactory {
public function getRenderer() {
if (!$this->renderer) {
$debugging = WP_DEBUG;
$autoReload = defined('MAILPOET_DEVELOPMENT') && MAILPOET_DEVELOPMENT;
$this->renderer = new Renderer(
$debugging,
Env::$cachePath,
new TwigFileSystem(Env::$viewsPath)
new TwigFileSystem(Env::$viewsPath),
$autoReload
);
}
return $this->renderer;

View File

@ -2,7 +2,7 @@
/*
* Plugin Name: MailPoet 3 (New)
* Version: 3.90.0
* Version: 3.90.1
* Plugin URI: http://www.mailpoet.com
* Description: Create and send newsletters, post notifications and welcome emails from your WordPress.
* Author: MailPoet
@ -17,7 +17,7 @@
*/
$mailpoetPlugin = [
'version' => '3.90.0',
'version' => '3.90.1',
'filename' => __FILE__,
'path' => dirname(__FILE__),
'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',

View File

@ -53,6 +53,7 @@ if (WP_DEBUG && PHP_VERSION_ID >= 70100 && file_exists($tracyPath)) {
session_start();
Debugger::enable(Debugger::DEVELOPMENT);
}
define('MAILPOET_DEVELOPMENT', true);
}
define('MAILPOET_VERSION', $mailpoetPlugin['version']);

View File

@ -3,7 +3,7 @@ Contributors: mailpoet
Tags: email, email marketing, post notification, woocommerce emails, email automation, newsletter, newsletter builder, newsletter subscribers
Requires at least: 5.6
Tested up to: 5.9
Stable tag: 3.90.0
Stable tag: 3.90.1
Requires PHP: 7.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -219,6 +219,9 @@ Check our [Knowledge Base](https://kb.mailpoet.com) or contact us through our [s
== Changelog ==
= 3.90.1 - 2022-06-16 =
* Fixed: occasional error related to twig templates when updating the plugin.
= 3.90.0 - 2022-06-14 =
* Updated: js-cookie library to version 3;
* Improved: autocomplete's accessibility for first and last name;