Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.
http://lyften.com/projects/laravel-geoip
BSD 2-Clause "Simplified" License
2.07k stars 372 forks source link

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

Open tyson-nw opened 4 years ago

tyson-nw commented 4 years ago

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?

brentarcane commented 4 years ago

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

'cache_tags' => null,
chuck-wood commented 3 years ago

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

ngocnd0242 commented 3 years ago

@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 🍡