jezdez/django_compressor — Issue #217: ./manage compress shouldn't recompress if no changes
Author: philfreo
Created: 2012-02-23 07:36:12+00:00
State: open

I'm trying to use COMPRESS_OFFLINE and in my deployment script call `./manage compress`

I'm using the Closure Compiler since the default one doesn't properly add semicolons in JS and breaks Bootstrap's JS. Closure is very slow... which I wouldn't mind except:

The problem is that it appears that `manage compress` recompiles the files every time `compress` is run. This means waiting for it to do the same work over again on a file that hasn't changed.

`compress` should instead check to see if the file modification time has changed since the last cache was generated for it.