Skip to content

Commit

Permalink
[mms] Add ability to expire CSS cache based on file modification time.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 9, 2013
1 parent 4380c4d commit 786fd06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/Core/lib/Horde/Themes/Css.php
Expand Up @@ -108,6 +108,12 @@ public function getStylesheetUrls(array $opts = array())
return $css_out;
}

if (empty($conf['cachecssparams']['filemtime'])) {
foreach ($css as &$val) {
$val['mtime'] = @filemtime($val['fs']);
}
}

$out = '';
$sig = hash('md5', serialize($css) . $this->_cacheid);

Expand Down
2 changes: 2 additions & 0 deletions framework/Core/package.xml
Expand Up @@ -39,6 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add ability to expire CSS cache based on file modification time.
* [mms] Allow disabling VFS via the configuration interface.
</notes>
<contents>
Expand Down Expand Up @@ -3176,6 +3177,7 @@
<date>2013-10-08</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Add ability to expire CSS cache based on file modification time.
* [mms] Allow disabling VFS via the configuration interface.
</notes>
</release>
Expand Down

0 comments on commit 786fd06

Please sign in to comment.