Skip to content

Commit

Permalink
don't expire follow activity Objects
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jan 22, 2025
1 parent cc9c7d5 commit 3f31449
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@

# auto delete most old objects via the Object.expire property
# https://cloud.google.com/datastore/docs/ttl
DONT_EXPIRE_OBJECT_TYPES = as1.ACTOR_TYPES
#
# need to keep follows because we attach them to Followers and use them for
# unfollows
DONT_EXPIRE_OBJECT_TYPES = as1.ACTOR_TYPES | set(['follow'])
OBJECT_EXPIRE_AGE = timedelta(days=90)

GET_ORIGINALS_CACHE_EXPIRATION = timedelta(days=1)
Expand Down

0 comments on commit 3f31449

Please sign in to comment.