From 9ea5cfe377f71aa2e7e0efbd7d4ad4f28204ae5b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 23 Dec 2015 17:23:15 -0800 Subject: [PATCH] Make sure docs encourage __METHOD__ use for begin/commit Change-Id: Id9c2d1b30f9dd758b418894b5751556daff20f0e --- includes/libs/objectcache/WANObjectCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 01f8ccc549..4aa868efce 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -450,7 +450,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * * Example usage: * @code - * $dbw->begin(); // start of request + * $dbw->begin( __METHOD__ ); // start of request * ... ... * // Update the row in the DB * $dbw->update( ... ); @@ -460,7 +460,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * $cache->delete( $key ); * } ); * ... ... - * $dbw->commit(); // end of request + * $dbw->commit( __METHOD__ ); // end of request * @endcode * * The $ttl parameter can be used when purging values that have not actually changed -- 2.20.1