Comments (10)
I think we should give the user the ability to set a different redis connection in laravel-visits config.
'redis' => [
....
//custom connection
'laravel-visits' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 1, // anything from 1 to 15, except 0 (or what is set in default)
],
....
],
and in laravel-visits config
'redis_connection' => null, // can be set to a custom connection, or `null` for default
from laravel-visits.
@summerblue awesome, Thanks ! .. I have made a few more changes.. check the latest commits ..
can you please try the updated version ?
from laravel-visits.
@adriaanzon good catch. but still for me I think the documentation should stay as a warning because default Redis database still get flushed sometimes. and we should introduce a change like:
- database => 3,
+ database => env('REDIS_DB', 3),
from laravel-visits.
I'm sorry but this not possible we are using redis and artisan cache:clear
doesn't clear your redis storage
from laravel-visits.
@if4lcon Sorry, there is something I missed, u have to set your default cache driver to redis
at the config/cache.php
file.
from laravel-visits.
@summerblue how do you suggest fixing this issue ?
from laravel-visits.
@abdumu That would be wonderful!
from laravel-visits.
@summerblue can you try this commit and confirm if is resolve this issue ?
from laravel-visits.
@if4lcon Tested, works perfect. I also put two comments in the commit d7ff826 u should see it, and please put out a new release when u are done. I am waiting for the new release to fix the production code. Thanks a lot.
from laravel-visits.
I wonder if it should still be documented this way at https://awssat.com/opensource/laravel-visits/3_installation.html#redis-configuration, because this PR introduced a separate Redis database to store cache items by default.
from laravel-visits.
Related Issues (20)
- getVisitorReferer() always get no value~ HOT 9
- geoip 1.0.x-dev is preventing install on Laravel 8 HOT 1
- redis queued to database store HOT 2
- Syntax error or access violation on Migration HOT 1
- Trying to access array offset on value of type null HOT 1
- Get visits of Item for specific date range?
- Add Multiple Tags
- all period show the same result HOT 2
- Get today visitors count on the whole app HOT 1
- Remove
- Empty array for countries and languages HOT 1
- Compatibiltiy with mongodb HOT 2
- How can I delete that redis record after deleting the post? HOT 1
- There is a problem with writing the data.
- Periods options only works a few of them HOT 4
- Compatibility issue with Laravel 10 HOT 1
- Redis server went away (php_network_getaddresses: getaddrinfo for cache failed) HOT 1
- Target class [eloquent] does not exist. HOT 3
- How to store redis data in mysql HOT 1
- Call to a member function setPrefix() on null HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-visits.