Skip to content

Commit

Permalink
update redis
Browse files Browse the repository at this point in the history
  • Loading branch information
kortirso committed Aug 19, 2023
1 parent 36fb249 commit 38d9c7d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ gem 'pghero'
gem 'rails_event_store'

# cache store
gem 'redis', '4.8.1'
gem 'redis', '~> 5.0'
gem 'redis-rails'

# reputation system
Expand Down
8 changes: 6 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ GEM
builder (3.2.4)
commento (0.1.2)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
crass (1.0.6)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
Expand Down Expand Up @@ -278,14 +279,17 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
redis (4.8.1)
redis (5.0.7)
redis-client (>= 0.9.0)
redis-actionpack (5.3.0)
actionpack (>= 5, < 8)
redis-rack (>= 2.1.0, < 3)
redis-store (>= 1.1.0, < 2)
redis-activesupport (5.3.0)
activesupport (>= 3, < 8)
redis-store (>= 1.3, < 2)
redis-client (0.16.0)
connection_pool
redis-rack (2.1.4)
rack (>= 2.0.8, < 3)
redis-store (>= 1.2, < 2)
Expand Down Expand Up @@ -430,7 +434,7 @@ DEPENDENCIES
rails (~> 7.0)
rails-controller-testing (= 1.0.5)
rails_event_store
redis (= 4.8.1)
redis (~> 5.0)
redis-rails
route_translator!
rspec-rails (~> 6.0)
Expand Down
3 changes: 0 additions & 3 deletions app/javascript/components/SquadPoints/SquadPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ export const SquadPoints = ({
// main data
const [playerUuid, setPlayerUuid] = useState<string | undefined>();

console.log(previousPointsUrl);
console.log(nextPointsUrl);

useEffect(() => {
const fetchTeams = async () => {
const data = await teamsRequest(seasonUuid);
Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
config.action_controller.enable_fragment_cache_logging = true
config.active_record.cache_versioning = false

config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
config.cache_store = :redis_cache_store, { host: 'localhost', port: 6379, db: 0 }
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}"
}
Expand Down

0 comments on commit 38d9c7d

Please sign in to comment.