Comments (3)
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.
(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.
You're definitely free to send in a patch then. Thanks.
from pj-page-cache-red.
Related Issues (20)
- Feature request: Purge the cache from the Wordpress admin
- Modify cache before page loads HOT 1
- Incorrect path
- No longer caching in Wordpress 4.9+ HOT 8
- Clear cache on specific URL HOT 1
- Cache is always missed HOT 21
- Missing function HOT 1
- video not be cached and not play HOT 1
- redis-page-cache-config.php doesn't seem to work HOT 1
- Composer support
- Please tag the releases HOT 4
- Setting TTL in Redis HOT 4
- [inquiry] - is this WooCommerce friendly? HOT 7
- url with trailing cash are not being cached HOT 8
- Using unix socket? HOT 1
- Enhancement: Compression type and level support HOT 1
- Is this project still maintained? HOT 1
- Enhancement: Add remote redis support HOT 1
- Plugin Optimization... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pj-page-cache-red.