Fix comments

pull/2538/head
Erik Johnston 2017-10-12 18:16:25 +01:00
parent 4ae85ae121
commit d76621a47b
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def _wrap_in_base_path(func):
class MediaFilePaths(object):
"""Describes where files are stored on disk.
Most of the function have a `*_rel` variant which returns a file path that
Most of the functions have a `*_rel` variant which returns a file path that
is relative to the base media store path. This is mainly used when we want
to write to the backup media store (when one is configured)
"""

View File

@ -343,6 +343,9 @@ class PreviewUrlResource(Resource):
def _expire_url_cache_data(self):
"""Clean up expired url cache content, media and thumbnails.
"""
# TODO: Delete from backup media store
now = self.clock.time_msec()
# First we delete expired url cache entries