jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Conflicting Cache_Lite with Pear install #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Minify 2.0.1 when you use the server cache, which at the moment only has
Cache_Lite, you run into conflicts if you currently use Cache_Lite on your
site because you are trying to redefine Cache_Lite.

Solution:
I changed the class name from Cache_Lite to Cache_Lite_Minify to keep this
from happening.  Since the library provides a "custom" version of
Cache_Lite this is about the only way to get around this error if you use
Cache_Lite already.

Another solution could be only load up the minify Cache_Lite if an existing
Cache_Lite has not been defined.  I have not checked the minify Cache_Lite
against the latest Pear install of Cache_Lite so I am unsure if there are
any changes that would cause using a pear installed Cache_Lite to not work
properly.

Original issue reported on code.google.com by austin.bischoff on 21 Jul 2008 at 3:24

GoogleCodeExporter commented 9 years ago
Yeah, packaging them as one file was a dumb decision on my part. I removed 
Cache_Lite completely in 2.0.2 beta in favor of a custom class optimized for 
fast 
reads. Give that a shot.

Original comment by mrclay....@gmail.com on 21 Jul 2008 at 3:37