Skip to content

Cache does not flush by tag! Redis #53896

@AmirKhalifehSoltani

Description

@AmirKhalifehSoltani

Laravel Version

11.35.1

PHP Version

8.2

Database Driver & Version

Redis

Description

Cache::tags('tag_name')->flush();
returns true but the cache does not flush actually.
but Cache::flush(); works correctly.

  • php 8.2
  • laravel 11.35.1
  • phpredis library

Steps To Reproduce

  1. Cache::tags('mytag')->put('name', 'Amir', 120);
  2. Cache::tags('mytag')->get('name');
  3. Cache::tags('mytag')->flush();
  4. Cache::tags('mytag')->get('name');

And after flush you can still get the name!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions