Skip to content

Commit 71486fe

Browse files
author
Mohammed Karim
committed
Added comment to existing try/catch block
1 parent fc192db commit 71486fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

system/Cache/Handlers/PredisHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public function __construct($config)
9999
*/
100100
public function initialize()
101101
{
102+
// Try to connect to Redis, if an issue occurs throw a CriticalError exception,
103+
// so that the CacheFactory can attempt to initiate the next cache handler.
102104
try
103105
{
104106
// Create a new instance of Predis\Client

0 commit comments

Comments
 (0)