CC-5555 : Implement simple caching for preferences
better to include the key in the error message
This commit is contained in:
parent
f69dd123ca
commit
f615e176e2
airtime_mvc/application/models
|
@ -34,7 +34,7 @@ class Application_Model_Preference
|
||||||
$userId = self::getUserId();
|
$userId = self::getUserId();
|
||||||
|
|
||||||
if ($isUserValue && is_null($userId)) {
|
if ($isUserValue && is_null($userId)) {
|
||||||
throw new Exception("User id can't be null for a user preference.");
|
throw new Exception("User id can't be null for a user preference {$key}.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Application_Common_Database::prepareAndExecute("LOCK TABLE cc_pref");
|
Application_Common_Database::prepareAndExecute("LOCK TABLE cc_pref");
|
||||||
|
|
Loading…
Reference in New Issue