Skip to content

Allow to use unix socket for redis backend #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2016
Merged

Allow to use unix socket for redis backend #14

merged 1 commit into from
Nov 15, 2016

Conversation

deees
Copy link
Contributor

@deees deees commented Nov 11, 2016

No description provided.

@@ -56,7 +56,11 @@ public function buildRedisCache($options)
}

$redis = new \Redis();
$redis->connect($options['host'], $options['port'], $timeout);
if (empty($options['unix_socket'])) {
$redis->pconnect($options['host'], $options['port'], $timeout);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change to pconnect really needed? As far as I can see this would be a persistent connection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, not related to this pull request, will remove.

matomo-org/plugin-QueuedTracking#47 (comment)

@tsteur
Copy link
Member

tsteur commented Nov 15, 2016

This looks good to merge to me. I will prepare a PR for Piwik 3 and add the new config setting to the template so users will know that they can use it.

@tsteur tsteur merged commit 5f66525 into matomo-org:master Nov 15, 2016
@tsteur
Copy link
Member

tsteur commented Nov 15, 2016

Thanks for the PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants