-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi!
I tried using the cache in Lumen 5.6.4 (Laravel Components 5.6.*) and last version of package ("unikent/tfilecache": "2.0.2").
Writing values to the cache with the first tag value is successful. When trying to write to the cache a value with a tag other than the one previously used, an error occurs.
Code:
Cache::tags('languages')->add('d8b910c5d20fea344ea1643004', 'Value 1', 5);
Cache::tags('translations')->add('d8b910c5d20fea344ea16430049d708a', 'Value 2', 5);
Error:
Argument 2 passed to str_contains() must be of the type string, null given, called in /client/www/vendor/unikent/tfilecache/src/Cache/TaggableFileStore.php on line 83.
(1/1) TypeError Argument 2 passed to str_contains() must be of the type string, null given, called in /client/www/vendor/unikent/tfilecache/src/Cache/TaggableFileStore.php on line 83
in bootstrap.php line 29
at str_contains('5ee8d6fa8df70648616669', null)in TaggableFileStore.php line 83
at TaggableFileStore->flushOldTag(null)in Repository.php line 574
at Repository->__call('flushOldTag', array(null))in FlushTagFromFileCacheJob.php line 47
at FlushTagFromFileCacheJob->handle()
at call_user_func_array(array(object(FlushTagFromFileCacheJob), 'handle'), array())in BoundMethod.php line 29
at BoundMethod::Illuminate\Container{closure}()in BoundMethod.php line 87
at BoundMethod::callBoundMethod(object(Application), array(object(FlushTagFromFileCacheJob), 'handle'), object(Closure))in BoundMethod.php line 31
at BoundMethod::call(object(Application), array(object(FlushTagFromFileCacheJob), 'handle'), array(), null)in Container.php line 564
at Container->call(array(object(FlushTagFromFileCacheJob), 'handle'))in Dispatcher.php line 94
at Dispatcher->Illuminate\Bus{closure}(object(FlushTagFromFileCacheJob))in Pipeline.php line 116
at Pipeline->Illuminate\Pipeline{closure}(object(FlushTagFromFileCacheJob))in Pipeline.php line 104
at Pipeline->then(object(Closure))in Dispatcher.php line 98
at Dispatcher->dispatchNow(object(FlushTagFromFileCacheJob), false)in CallQueuedHandler.php line 49
at CallQueuedHandler->call(object(SyncJob), array('commandName' => 'Unikent\Jobs\FlushTagFromFileCacheJob', 'command' => 'O:37:"Unikent\Jobs\FlushTagFromFileCacheJob":9:{s:9:"' . "\0" . '' . "\0" . 'tagIds";a:1:{i:0;N;}s:9:"' . "\0" . '' . "\0" . 'driver";s:5:"tfile";s:6:"' . "\0" . '*' . "\0" . 'job";N;s:10:"connection";N;s:5:"queue";N;s:15:"chainConnection";N;s:10:"chainQueue";N;s:5:"delay";N;s:7:"chained";a:0:{}}'))in Job.php line 83
at Job->fire()in SyncQueue.php line 42
at SyncQueue->push(object(FlushTagFromFileCacheJob))in Dispatcher.php line 184
at Dispatcher->pushCommandToQueue(object(SyncQueue), object(FlushTagFromFileCacheJob))in Dispatcher.php line 160
at Dispatcher->dispatchToQueue(object(FlushTagFromFileCacheJob))in Dispatcher.php line 73
at Dispatcher->dispatch(object(FlushTagFromFileCacheJob))in helpers.php line 77
at dispatch(object(FlushTagFromFileCacheJob))in FileTagSet.php line 39
at FileTagSet->resetTag('translations')in TagSet.php line 87
at TagSet->tagId('translations')
at array_map(array(object(FileTagSet), 'tagId'), array('translations'))in TagSet.php line 76
at TagSet->tagIds()in TagSet.php line 66
at TagSet->getNamespace()in TaggedFileCache.php line 26
at TaggedFileCache->taggedItemKey('d8b910c5d20fea344ea16430049d708a')in TaggedFileCache.php line 15
at TaggedFileCache->itemKey('d8b910c5d20fea344ea16430049d708a')in Repository.php line 86
at Repository->get('d8b910c5d20fea344ea16430049d708a')in Repository.php line 261