Skip to content

Commit 439f3aa

Browse files
committed
bugfix storing/changing CachePeer for 'in-transaction' state
1 parent 4362545 commit 439f3aa

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

core/Cache/Cache.class.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ public static function me()
5858
self::$peer = $peer;
5959
}
6060

61-
/**
62-
* @return CachePeer
63-
*/
64-
public static function getPeer()
65-
{
66-
return self::$peer;
67-
}
68-
6961
/* void */ public static function setDefaultWorker($worker)
7062
{
7163
Assert::classExists($worker);

core/DB/DB.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function begin(
135135

136136
$this->transaction = true;
137137

138-
$this->outOfTransactionCachePeer = Cache::getPeer();
138+
$this->outOfTransactionCachePeer = Cache::me();
139139
Cache::setPeer(new RuntimeMemory());
140140

141141
return $this;

0 commit comments

Comments
 (0)