laravel-geoip icon indicating copy to clipboard operation
laravel-geoip copied to clipboard

Disabling cache_tags in config/geoip.php does not prevent BadMethodCallExeption

Open tyson-nw opened this issue 5 years ago • 3 comments

I am using the file cache driver that doesn't support tags, so I commented out 'cache_tags' => ['torann-geoip-location'], in my config/geoip.php file but I still got BadMethodCallExeption This cache store does not support tagging. error.

I had do go into my vendor/torann/geoip/config/geoip.php and comment out the line as well and the exception went away.

Is there a better way of preventing tagging in the config/geoip.php file than commenting out the line? Could the comment be updated with that information since file is the default cache and it doesn't support tags?

tyson-nw avatar Jun 02 '20 19:06 tyson-nw

I simply set it to null rather than comment it out, and it worked.

'cache_tags' => null,

brentarcane avatar Jun 12 '20 07:06 brentarcane

Thanks! I set cache to 'none' and it still apparently tries to use the cache :|

chuck-wood avatar Aug 11 '20 00:08 chuck-wood

@tyson-nw Please comment two lines on file config/geoip.php

//    'cache_tags' => ['torann-geoip-location'],
//    'cache_tags' => null,

Last year, I tried and worked normally 🍡

ngocnd0242 avatar Aug 27 '20 14:08 ngocnd0242