Git Product home page Git Product logo

Comments (3)

soulseekah avatar soulseekah commented on August 31, 2024

Persistent connections are experimental and can be set only in threaded version of PHP (i.e. it won't probably work in FPM (subprocess) mode).

Also starting from version 4.2.1 of the PHP Redis libarary, it became possible to use connection pooling by setting INI variable redis.pconnect.pooling_enabled to 1.

We're not going to be support explicit pconnect until it's stable enough and works with FPM environments.

If you have any other suggestions, feel free to chip in.

from pj-page-cache-red.

erikdemarco avatar erikdemarco commented on August 31, 2024

@soulseekah

(i.e. it won't probably work in FPM (subprocess) mode)

Lets try a real world example. I tested it using W3 Total Cache with php-fpm default settings. W3TC redis page cache can use both mode persistent and non persistent (default to non persistent).

The result for page containing 100 products list with 100visits/ secs for 1 minute:
Without cache: ~3500ms
With persistent connection: ~600ms
Without persistent connection: ~700ms

So it works faster with persistent connection even in fpm.

"We're not going to be support explicit pconnect until it's stable enough"

Lets look at real world example again with most popular plugins:
-) W3 Total cache defaulted to use persistent connection for redis (The most popular page cache which can use redis)
-) Redis Object Cache By Till Krüss only support persistent connection

Both of them already been battle tested. I looked at their wp support forum and there is nothing mentioning problem with persistent connection

If you have any other suggestions, feel free to chip in.

My suggestion is to make it modifiable to use either mode via pj_user_config.

from pj-page-cache-red.

soulseekah avatar soulseekah commented on August 31, 2024

You're definitely free to send in a patch then. Thanks.

from pj-page-cache-red.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.