Use cache for forms rendering to

[MAILPOET-2639]
This commit is contained in:
Pavel Dohnal
2020-01-28 16:52:27 +01:00
committed by Jack Kitterhing
parent d06fc2d00d
commit e644675046
4 changed files with 36 additions and 3 deletions

View File

@ -5,6 +5,7 @@ namespace MailPoet\API\JSON\v1;
use MailPoet\API\JSON\Endpoint as APIEndpoint;
use MailPoet\API\JSON\Error as APIError;
use MailPoet\Config\AccessControl;
use MailPoet\Form\DisplayFormInWPContent;
use MailPoet\Form\Renderer as FormRenderer;
use MailPoet\Form\Util;
use MailPoet\Listing;
@ -174,6 +175,8 @@ class Forms extends APIEndpoint {
}
}
WPFunctions::get()->deleteTransient(DisplayFormInWPContent::NO_FORM_TRANSIENT_KEY);
// check if the user gets to pick his own lists
// or if it's selected by the admin
$hasSegmentSelection = false;