PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 7, 2022

[FIXED] Laravel: This cache store does not support tagging with array or redis

 January 07, 2022     caching, composer-php, laravel     No comments   

Issue

I am getting the following error on my Laravel application :

BadMethodCallException
This cache store does not support tagging.

But, in my .env I have set CACHE_DRIVER=array or redis.

I am unable to use spatie/laravel-responsecache because of this issue.

Reinstalling my application didn't help.

Maybe a package is interfering with my app, but the problem is new. Here is my composer.json:

"require": {
    "php": "^7.3",
    "ext-json": "*",
    "doctrine/dbal": "^2.9",
    "felixinx/gtfs-realtime-protobuf-php": "@dev",
    "fideloper/proxy": "^4.0",
    "guzzlehttp/guzzle": "^6.3",
    "laravel/framework": "^6.0",
    "laravel/horizon": "^3.2",
    "laravel/tinker": "^1.0",
    "league/csv": "^9.1",
    "mad-web/laravel-initializer": "^2.0",
    "predis/predis": "^1.1",
    "pusher/pusher-php-server": "~4.0",
    "spatie/laravel-responsecache": "^6.3",
    "symfony/psr-http-message-bridge": "^1.1"
},
"require-dev": {
    "barryvdh/laravel-debugbar": "^3.2",
    "fzaninotto/faker": "^1.4",
    "mockery/mockery": "^1.0",
    "nunomaduro/collision": "^3.0",
    "phpunit/phpunit": "^8.0"
},

Solution

You need to define the RESPONSE_CACHE_DRIVER environment variable:

RESPONSE_CACHE_DRIVER=array|redis|memcached


Answered By - Razor
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing