pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
226 stars 68 forks source link

Difference to the "Redis Object Cache" plugin #236

Closed milkovsky closed 5 years ago

milkovsky commented 5 years ago

Could you please tell what is difference between this plugin and the "Redis Object Cache" plugin?

As I understand "Redis Object Cache" handles only object cache, and "WP Redis" handles both page and object cache. Is it correct?

szepeviktor commented 5 years ago

We don't say anything bad about Till Krüss.

His plugin is more towards non-professional users as it supports Predis (which is in PHP not C) and has a UI.

for clarity: WordPress core -> wp-redis plugin -> phpredis PECL extension -> Redis server

szepeviktor commented 5 years ago

handles both page and object cache

:( No, both plugins are object cache only.

ps. I advise you not to use a full page cache plugin, see for example https://github.com/szepeviktor/tiny-cache

milkovsky commented 5 years ago

Thank you for the feedback and advise!

A follow-up question: Is there any reason why is the page cache not supported by wp-redis? I think it is in general not a bad idea to store page cache in Redis.

szepeviktor commented 5 years ago

AFAIK full page caching is not a professional thing, while comparing highly optimized (https://github.com/szepeviktor/tiny-cache) PHP runtime to HTML file read time you find a small difference (~50 msec)

a full page cache makes a lot of things go wrong like HTTP headers, and prevents dynamic content

szepeviktor commented 5 years ago

Please close these 2 issues. Thanks.

milkovsky commented 5 years ago

Thank you for the answers! I am closing the issue.

Next text is just FYI:

I am new to WP, but I have Drupal background. In Drupal there is no separation on Object Cache and Page cache. So I am still not sure what it is all about. In Drupal projects the entire cache is stored is a single place. With a concept of cache-tags and cache-contexts cache always stays up-to-date. In addition there is an optional separation on dynamic and not dynamic page cache.

FYI Redis module for Drupal.

szepeviktor commented 5 years ago

Thank you.

For Drupal sites Redis is also a must have.