Skip to content

Commit 6cdb669

Browse files
committed
1 parent 97b108a commit 6cdb669

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft CMS 4
22

3+
## Unreleased
4+
5+
- Fixed a bug where read/write splitting was always getting disabled for `graphql/api` POST requests. ([#14324](https://github.com/craftcms/cms/issues/14324))
6+
37
## 4.7.2.1 - 2024-02-08
48

59
- Craft now requires Composer ^2.7.0. ([CVE-2024-24821](https://github.com/advisories/GHSA-7c6p-848j-wh5h))

src/web/Application.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function handleRequest($request, bool $skipSpecialHandling = false): Resp
161161
// Process resource requests before anything else
162162
$this->_processResourceRequest($request);
163163

164-
// Disable read/write splitting for POST requests
164+
// Disable read/write splitting for most POST requests
165165
if (
166166
$request->getIsPost() &&
167167
!in_array($request->getActionSegments(), [
@@ -171,6 +171,7 @@ public function handleRequest($request, bool $skipSpecialHandling = false): Resp
171171
['element-indexes', 'get-elements'],
172172
['element-indexes', 'get-more-elements'],
173173
['element-indexes', 'get-source-tree-html'],
174+
['graphql', 'api'],
174175
])
175176
) {
176177
$this->getDb()->enableReplicas = false;

0 commit comments

Comments
 (0)