diff --git a/ckan/lib/cli.py b/ckan/lib/cli.py index 89b14cf4df1..52baaa45b1a 100644 --- a/ckan/lib/cli.py +++ b/ckan/lib/cli.py @@ -1708,9 +1708,6 @@ def minify_file(self, path): file, or it's some other type of file entirely) it will not be minifed. - If the minified version of the file already exists and is newer than - the source file, the file will not be minified. - :param path: The path to the .js or .css file to minify ''' @@ -1726,11 +1723,6 @@ def minify_file(self, path): path_min = fanstatic_resources.min_path(path) - if os.path.exists(path_min) and ( - os.path.getmtime(path) < os.path.getmtime(path_min)): - # Minified file exists and is newer than source file. - return - source = open(path, 'r').read() if path.endswith('.css'): f = open(path_min, 'w')