Support » Plugin: Powered Cache » Redis object-cache on hosting like Beget

  • Resolved UnLambda

    (@unlambda)


    Hello
    I am triyng your plugin can you please help me to understand Redis setup ?

    My hosting privider Beget only asks me to use Redis Object Cache plugin and to add

    define('WP_CACHE_KEY_SALT', 'my-site.com');
    define('WP_CACHE', true);

    instead of
    $redis_server = array( 'host' => '127.0.0.1', 'port' => 6379, 'auth' => '12345', 'database' => 0, );

    ‘auth’ What I supposed to insert intead of 12345 ?
    ‘database’ What I supposed to insert intead of zero ?

    One more question
    It is possible to applay cache (Redis) to community plugins like PeepSo ? I am only interested in lowering CPU usage.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @unlambda,

    As I understand, your hosting provider is offering redis without authentication. So, don’t enter auth details. Actually you can remove that configuration in wp-config file. Default configuration is using 127.0.0.1 as host and 6379 as port.

    It is possible to applay cache (Redis) to community plugins like PeepSo ? I am only interested in lowering CPU usage.

    Object caching backend means, making cache persistent. I don’t know how does PeepSo works but, it’s a WordPress plugin, and I hope that plugin is using WordPress caching API. Shortly; Yes! that will reduce to CPU usage 🙂

    Btw, you can use the Query Monitor plugin to see how does that impact your website.

    Cheers,

    UnLambda

    (@unlambda)

    I have problems with PeepSo and admin-ajax.php
    Probably PeepSo using admin-ajax.php
    I am testing PeepSo functionality. I am only visitor. And I am using all resourses of my paln (without cache plugin). Now I installed your plugin. And I hope to lower some CPU usage.
    Community plugins like PeepSo are supposed work with registered users. If I uncheck
    Show cached page for logged in users (?) Redis will not work and CPU usage will not change ?

    Top CPers: (65.119 total)
    -------------------------------------------
     40.798	website.com/wp-admin/admin-ajax.php
     12.740	website.com/peepsoajax/notificationsajax.get_latest_count
     4.205	website.com/wp-cron.php
     1.129	website.com/favicon.ico
     1.107	website.com/peepsoajax/chatajax.get_chats
     1.034	website.com/
     1.017	website.com/peepsoajax/activity.show_posts_per_page
     0.855	website.com/peepsoajax/notificationsajax.get_latest
     0.414	website.com/peepsoajax/membersearch.search
     0.403	website.com/glossary/
     0.253	website.com/ans-ajax-example-page/
     0.221	website.com/answers/
     0.148	website.com/members/
     0.098	website.com/wp-admin/options-general.php
     0.086	website.com/profile/
     0.077	website.com/wp-admin/nav-menus.php
     0.076	website.com/wp-admin/
     0.068	website.com/wp-admin/admin.php
     0.054	website.com/wp-admin/plugins.php
     0.053	website.com/wp-admin/load-scripts.php
    Top 20 of 421 Requests:
    -------------------------------------------
     3308	52.90%	POST	website.com/wp-admin/admin-ajax.php
     1334	21.33%	POST	website.com/peepsoajax/notificationsajax.get_latest_count
     531	8.49%	GET	website.com/wp-admin/admin-ajax.php?action=updraft_ajax&subaction=activejobs_list&nonce=4bb51e87f9&downloaders=
     162	2.59%	GET	website.com/favicon.ico
     131	2.09%	GET	website.com/wp-cron.php
     102	1.63%	POST	website.com/peepsoajax/chatajax.get_chats
     67	1.07%	GET	website.com/
     62	0.99%	POST	website.com/peepsoajax/activity.show_posts_per_page
     56	0.90%	GET	website.com/peepsoajax/notificationsajax.get_latest?page=1&per_page=5&unread_only=0
     24	0.38%	GET	website.com/glossary/
     17	0.27%	GET	website.com/answers-page/
     7	0.11%	GET	website.com/wp-admin/
     6	0.10%	GET	website.com/members/
     6	0.10%	GET	website.com/peepsoajax/membersearch.search?uid=1&user_id=0&peepso_following=-1&limit=4&page=1
     6	0.10%	GET	website.com/peepsoajax/membersearch.search?uid=1&user_id=0&peepso_following=-1&limit=4&page=2
     4	0.06%	GET	www.website.com/robots.txt
     4	0.06%	GET	website.com/wp-admin/options-general.php?page=seed_csp4&settings-updated=true
     4	0.06%	POST	website.com/wp-admin/options.php
     3	0.05%	GET	website.com/term/
     3	0.05%	GET	website.com/wp-admin/nav-menus.php?action=locations
    • This reply was modified 1 year ago by  UnLambda.
    • This reply was modified 1 year ago by  UnLambda.
    Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @unlambda,

    Sorry I can’t provide support about the other plugins here. But as an additional info, admin-ajax.php memory/CPU usage depends on the callback which is the hooked from the plugin.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Show cached page for logged in users (?) Redis will not work and CPU usage will not change ?

    That’s about page cache, if you enable that option, the whole page will be cached, and CPU usage will be reduced dramatically. But, you have to be careful when enabling that option.

    Websites like social networks, generate user-specific content. So, caching whole page for the invidual users are not the ideal solution.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @unlambda,

    Is there any news? I’m marking this topic as resolved. If the problem persists, let me know!

    Cheers,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redis object-cache on hosting like Beget’ is closed to new replies.