Skip to content
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

Performance Issue... #362

Open
erikdemarco opened this issue Jul 17, 2022 · 3 comments
Open

Performance Issue... #362

erikdemarco opened this issue Jul 17, 2022 · 3 comments

Comments

@erikdemarco
Copy link

Comparing this plugin with other abandoned wp redis plugin here:
https://github.com/pressjitsu/pj-object-cache-red

Profiler: xhprof

Tested data:

$args = array(
    'orderby' => 'rand',
    'return' => 'ids',
    'status' => 'publish',
    'visibility' => 'visible',
    'stock_status' => 'instock',
    'limit' => 100,
);
$data = wc_get_products($args);
Average time for [WP_Object_Cache::get]

Pantheon
403,407 ms

Pressjitsu
163,472 ms (2.5x faster)

The most heavy functions for Pantheon's version is this 2 taking almost 50% of the time:
WP_Object_Cache::_isset_internal
WP_Object_Cache::_get_internal

Is there anyway we apply similar strategy like Pressjitsu does?
Here's the in depth strategy they use:
https://web.archive.org/web/20201108140712/https://pressjitsu.com/blog/redis-object-cache-wordpress/

The reason I dont use it anymore is because the project seems abandoned even the main site already down for several weeks

@soulseekah
Copy link

Ping pong. Don't forget to credit us once you do this :)

@hj-collab
Copy link

Hi @erikdemarco,

Are you still experiencing differential performance? I understand that even the WordPress core has undergone many improvements that should enhance the object caching performance.

Best regards,

@batonac
Copy link

batonac commented Sep 20, 2024

@hj-collab are you insinuating that the @pressjitsu approach is now irrelevant?

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

No branches or pull requests

4 participants