@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());