mirror of
https://github.com/friendica/friendica
synced 2025-04-22 15:10:12 +00:00
Cache config adapter connection status to reduce number of calls to DBA::isConnected()
This commit is contained in:
parent
3aa77685fc
commit
337c02bd80
3 changed files with 6 additions and 1 deletions
|
@ -6,8 +6,11 @@ use Friendica\Database\DBA;
|
|||
|
||||
abstract class AbstractDbaConfigAdapter
|
||||
{
|
||||
/** @var bool */
|
||||
protected $connected = true;
|
||||
|
||||
public function isConnected()
|
||||
{
|
||||
return DBA::connected();
|
||||
return $this->connected;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue