mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 02:13:29 +00:00
Only pull out local media that were for url cache
This commit is contained in:
1 parent
5f501ec7e2
commit
93247a424a
1 file changed
+1
-1
@@ -267,7 +267,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
||||
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"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user