*

MB Themes

Re: Memcache(d) Questions and Issues
« Reply #30 on: December 18, 2022, 09:55:14 PM »
@Wiz
well we should probably add these filters automatically into models.
currently it works well just for latest listings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #31 on: January 17, 2023, 05:34:38 PM »
Guys hi,

Any plans to also include Redis object caching ?


Thanks

*

MB Themes

Re: Memcache(d) Questions and Issues
« Reply #32 on: January 17, 2023, 05:58:07 PM »
It does not look to be complicated to take some of existing classes and change to redis...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #33 on: January 17, 2023, 06:32:11 PM »
It does not look to be complicated to take some of existing classes and change to redis...

Well, you know all that. I don't. It would nice to have that in the future and redis is very popular. I use it with Wordpress and works great. You can also use a different db for each site in the same instance of Redis (WP_REDIS_DATABASE), usfull for people like me hosting 3-4 sites in the same plan.

Thank you !

*

MB Themes

Re: Memcache(d) Questions and Issues
« Reply #34 on: January 17, 2023, 06:55:16 PM »
Will check it out and send you something for testing
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #35 on: January 17, 2023, 07:16:38 PM »
Will check it out and send you something for testing

Sure, any time. thank you

*

MB Themes

Re: Memcache(d) Questions and Issues
« Reply #36 on: January 18, 2023, 01:43:59 PM »
Change file extension to php, then you upload file to oc-includes/osclass/core/caches/

And then define in config one of options.

Code: [Select]
// define('OSC_CACHE', 'redis');
// $_cache_config[] = array('default_host' => '127.0.0.1', 'default_port' => 6379, 'default_password' => '');  // TCP option
// $_cache_config[] = array('default_host' => '/usr/local/var/run/redis.sock', 'default_port' => -1, 'default_password' => '');  // Unix socket option

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #37 on: January 18, 2023, 02:26:04 PM »
Change file extension to php, then you upload file to oc-includes/osclass/core/caches/

And then define in config one of options.

Code: [Select]
// define('OSC_CACHE', 'redis');
// $_cache_config[] = array('default_host' => '127.0.0.1', 'default_port' => 6379, 'default_password' => '');  // TCP option
// $_cache_config[] = array('default_host' => '/usr/local/var/run/redis.sock', 'default_port' => -1, 'default_password' => '');  // Unix socket option


I will, just give me this weekend.

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #38 on: January 18, 2023, 05:26:49 PM »
Password for Redis? I think this is not correct.


*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #40 on: January 18, 2023, 05:43:07 PM »
https://www.digitalocean.com/community/tutorials/how-to-set-up-redis-as-a-cache-for-mysql-with-php-on-ubuntu-20-04

Well, i don't have that in Wordpress and just got a reply from my hoster that it is not needed.

So, i can't help on this and my setup apparently.


*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #41 on: January 18, 2023, 05:56:13 PM »
I was told that we use something like this for Cpanel, so no auth is needed and the data is only for the user of Cpanel and the sites in that plan/user.


Quote
Autom8Redis automates the start/stop of a private Redis instance for each user, which can be managed by the user from his cPanel UI. This private Redis instance is only available to the user using Unix Domain Socket under his home directory and is therefore secure This private Redis daemon will run under the user/group credentials and the max memory of this Redis instance can be set according to the cPanel hosting plan for the user.

*

MB Themes

Re: Memcache(d) Questions and Issues
« Reply #42 on: January 18, 2023, 06:07:49 PM »
Just remove that auth line and thats it
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #43 on: January 18, 2023, 06:26:16 PM »
Just remove that auth line and thats it

You mean line 270

Code: [Select]
$this->_redis->auth($_config['password']);
??

*

dsf

  • *****
  • 261 posts
Re: Memcache(d) Questions and Issues
« Reply #44 on: January 18, 2023, 06:48:17 PM »
Some issues, one of them when i view ANY category.