Skip to content

Commit

Permalink
Merge pull request #648 from codegouvfr/fix_timestamps_overwrite
Browse files Browse the repository at this point in the history
Fix timestamps overwrites
  • Loading branch information
andrew committed Aug 26, 2024
2 parents af22d81 + 265ec2c commit 2f5391f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Repository < ApplicationRecord

scope :with_funding, -> { where("metadata->'funding' is not null") }

self.record_timestamps = false

def self.topics
if self == Repository
Rails.cache.fetch("topics", expires_in: 1.week) do
Expand Down

0 comments on commit 2f5391f

Please sign in to comment.