Ticket #583 (closed Bug: duplicate)
Media module only caches last file in string
| Reported by: | SuicidalWeasel | Owned by: | gregmac |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.2 |
| Component: | Modules:Media | Version: | SVN HEAD |
| Keywords: | media, js, css, cache | Cc: |
Description
Currently, the media module is only caching the last file in a string of css or js files. This is because the $data variable is appended to the $output variable in a foreach loop. Afterwards the $data variable is being cached when in fact the $output variable should be cached.
($this->use_cache) AND $this->cache->set('media.css.'.$querystr, $data, array('media'), $this->cache_lifetime);
Should be: (applies to both css and js functions)
($this->use_cache) AND $this->cache->set('media.css.'.$querystr, $output, array('media'), $this->cache_lifetime);
Change History
Note: See
TracTickets for help on using
tickets.
