Redis use for coaching in functions
« on: June 20, 2024, 11:29:23 AM »
@mbthemes,
I am doing redis integration in plugins and theme's under get functions for 1 hrs caching. Is this good idea or any betterment?

Example

use Predis\Client;

class ModelBPR extends DAO {
    private static $instance;
    private $redis;


And



public function getSearchCategories() {
        $cacheKey = 'getSearchCategories';

        if ($this->redis->exists($cacheKey)) {
            return json_decode($this->redis->get($cacheKey), true);
        } else {
            $this->dao->select('s_category_ids');
            $this->dao->from($this->getTable_bp());

*

MB Themes

Re: Redis use for coaching in functions
« Reply #1 on: June 20, 2024, 12:08:50 PM »
you should enable redis as cache system in Osclass and instead, use Osclass functions
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots