mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-02 12:42:11 -04:00
Implement purge_media_cache admin API
This commit is contained in:
parent
314b146b2e
commit
a70688445d
5 changed files with 130 additions and 20 deletions
|
@ -65,3 +65,9 @@ class MediaFilePaths(object):
|
|||
file_id[0:2], file_id[2:4], file_id[4:],
|
||||
file_name
|
||||
)
|
||||
|
||||
def remote_media_thumbnail_dir(self, server_name, file_id):
|
||||
return os.path.join(
|
||||
self.base_path, "remote_thumbnail", server_name,
|
||||
file_id[0:2], file_id[2:4], file_id[4:],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue