Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Only pull out local media that were for url cache
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Sep 28, 2017
1 parent 5f501ec commit 93247a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/media_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _delete_url_cache_txn(txn):
def get_url_cache_media_before(self, before_ts):
sql = (
"SELECT media_id FROM local_media_repository"
" WHERE created_ts < ?"
" WHERE created_ts < ? AND url_cache IS NOT NULL"
" ORDER BY created_ts ASC"
" LIMIT 100"
)
Expand Down

0 comments on commit 93247a4

Please sign in to comment.