contao/core — Issue #3787: Combiner: add file modification time for generating unique strKey value
Author: DyaGa
Created: 2012-01-09 18:57:06+00:00
State: open

Example:

```php
class Combiner extends System
{
...
private $intLastmodified = 0;
...

public function add($strFile, $strVersion=false, $strMedia='screen')
{
...
$this->intLastmodified = max($this->intLastmodified, filemtime($strFile));
}

...

public function getCombinedFile($strUrl=TL_SCRIPT_URL)
{
$strKey = substr(md5($this->strKey . $this->intLastmodified), 0, 12);
...
```

Why do we need this?
During development custom plugin we doesn't change it version or filename (which are now used for generating unique strKey). And for checking how new changes are works on server we should clear *scripts* folder each time for see that minified version is here...