mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-07 08:22:38 -04:00
Only pull out local media that were for url cache
This commit is contained in:
parent
5f501ec7e2
commit
93247a424a
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
||||||
def get_url_cache_media_before(self, before_ts):
|
def get_url_cache_media_before(self, before_ts):
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT media_id FROM local_media_repository"
|
"SELECT media_id FROM local_media_repository"
|
||||||
" WHERE created_ts < ?"
|
" WHERE created_ts < ? AND url_cache IS NOT NULL"
|
||||||
" ORDER BY created_ts ASC"
|
" ORDER BY created_ts ASC"
|
||||||
" LIMIT 100"
|
" LIMIT 100"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue