| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function testInvalidateByTag(): void |
||
| 19 | { |
||
| 20 | $cache = $this->getCache(); |
||
| 21 | $cache->set('item_42_price', 13, null, new TagDependency('item_42')); |
||
| 22 | $cache->set('item_42_total', 26, null, new TagDependency('item_42')); |
||
| 23 | |||
| 24 | $this->assertSame(13, $cache->get('item_42_price')); |
||
| 25 | $this->assertSame(26, $cache->get('item_42_total')); |
||
| 26 | |||
| 27 | TagDependency::invalidate($cache, 'item_42'); |
||
| 28 | |||
| 29 | // keys are invalidated but are still there |
||
| 30 | $this->assertTrue($cache->has('item_42_price')); |
||
| 31 | $this->assertTrue($cache->has('item_42_total')); |
||
| 32 | |||
| 33 | $this->assertNull($cache->get('item_42_price')); |
||
| 34 | $this->assertNull($cache->get('item_42_total')); |
||
| 35 | } |
||
| 37 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths