Ticket #583 (closed Bug: duplicate)

Opened 7 months ago

Last modified 7 months ago

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

Changed 7 months ago by allain

Same as ticket #573

Changed 7 months ago by SuicidalWeasel

  • status changed from new to closed
  • resolution set to duplicate

Crap. Sorry.

Note: See TracTickets for help on using tickets.