Skip to content

Commit 36097e8

Browse files
committed
Merge branch 'release/4.0.2'
2 parents a22f666 + acee24e commit 36097e8

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

.craftplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"pluginName":"Transform","pluginDescription":"Transform Craft Element and field data structures","pluginVersion":"4.0.1","pluginAuthorName":"Fork Unstable Media GmbH","pluginVendorName":"fork","pluginAuthorUrl":"https://www.fork.de","pluginAuthorGithub":"fork","codeComments":"yes","pluginComponents":["services","variables"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"Data","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}
1+
{"pluginName":"Transform","pluginDescription":"Transform Craft Element and field data structures","pluginVersion":"4.0.2","pluginAuthorName":"Fork Unstable Media GmbH","pluginVendorName":"fork","pluginAuthorUrl":"https://www.fork.de","pluginAuthorGithub":"fork","codeComments":"yes","pluginComponents":["services","variables"],"consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"Data","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 4.0.2 - 2025-09-24
8+
### Fixed
9+
- Fixed an issue where live preview requests weren't detected correctly, resulting in them being cached
10+
711
## 4.0.1 - 2025-04-08
812
### Fixed
913
- Fixed an issue with eager loaded elements not being serializable

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "fork/craft-transform",
33
"description": "Transform Craft Element and field data structures",
44
"type": "craft-plugin",
5-
"version": "4.0.1",
5+
"version": "4.0.2",
66
"keywords": [
77
"craft",
88
"cms",

src/services/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function transform($element, string|TransformerAbstract|null $transformer
7777
$transformer = $this->getTransformerInstance($transformer);
7878

7979
$request = Craft::$app->getRequest();
80-
$ignoreCache = $request->getIsLivePreview() || $request->getToken();
80+
$ignoreCache = $request->getQueryParam('x-craft-live-preview') || $request->getIsLivePreview() || $request->getToken();
8181

8282
if (Transform::$plugin->settings->enableCache && !$ignoreCache && method_exists($transformer, 'getCacheKey')) {
8383
$cacheKey = $transformer->getCacheKey($element);

0 commit comments

Comments
 (0)