Closed GoogleCodeExporter closed 9 years ago
What's the URL you're using to call Minify and are you using custom code in
groupsConfig.php?
Original comment by mrclay....@gmail.com
on 19 Sep 2010 at 4:45
I call Minify inside PHP:
Minify::serve('Files', $options = array( 'files'=>array('file1.js','file2.js')
));
Original comment by rcma...@gmail.com
on 19 Sep 2010 at 7:00
...and cached in Memcache
Original comment by rcma...@gmail.com
on 19 Sep 2010 at 7:01
I got it. It's not defect of Minify. I looked in Minify::serve and found out,
that all files are packed in one cache. So even if Minify checks the set of
files, it will rebuilt it's cache for that set.
In attached file you can find my solution.
I hope the option of separate cache will be built-in in future versions. :)
Original comment by rcma...@gmail.com
on 19 Sep 2010 at 9:29
Attachments:
I see, you're optimizing based on knowing your common files will be the same
for each user. This would be a bit cleaner use of the API:
http://pastebin.com/A06vw1Wh
Particularly, letting Minify serve the content directly should improve
performance because it caches the output of gzip, whereas Apache has to re-zip
every request.
Original comment by mrclay....@gmail.com
on 20 Sep 2010 at 12:47
Original issue reported on code.google.com by
rcma...@gmail.com
on 19 Sep 2010 at 12:56