givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
384 stars 82 forks source link

Failed to delete redis database cache. #155

Closed Shofiul-Alam closed 4 months ago

Shofiul-Alam commented 4 months ago

I used redis docker for my stack. After, changed to cache to redis driver I had to update delete method in system/cache/redis.php driver as follow -

public function delete($namespace, $key) {
        if($key){
            $this->redis->del($this->options['prefix'] . $key);
        }else{
            $keys = $this->redis->keys('*');
            $this->redis->del($keys);
        }
        return true;
    }

Please take a look and if this changes are ok update the framework code.

givanz commented 4 months ago

Thank you for delete suggestion, I included delete all keys in the last commit https://github.com/givanz/Vvveb/commit/fc9138ff7773fe244a6ad084122ee5ecb8becf6c

Shofiul-Alam commented 4 months ago

@givanz You are amazing. Many thanks.