diff --git a/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php b/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php index 416bdae..fb6e45b 100644 --- a/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php +++ b/core/components/phpthumbof/model/phpthumbof/phpthumbof.class.php @@ -289,6 +289,7 @@ public function getCacheFilename() { $inputSanitized = str_replace(array(':','/'),'_',$this->input); $this->cacheFilename = md5($inputSanitized); $this->cacheFilename .= '.'.md5(serialize($this->options)); + $this->cacheFilename .= '.'.filemtime(rtrim($this->modx->getOption('base_path',null,MODX_BASE_PATH),'/').$this->input); $this->cacheFilename .= '.' . (!empty($this->options['f']) ? $this->options['f'] : 'png'); } else { /* or attempt to preserve the filename */ $inputSanitized = str_replace(array('http://','https://','ftp://','sftp://'),'',$this->input); @@ -304,6 +305,7 @@ public function getCacheFilename() { } } $this->cacheFilename .= '.'.md5(serialize($this->options)).$this->modx->resource->get('id'); + $this->cacheFilename .= '.'.filemtime(rtrim($this->modx->getOption('base_path',null,MODX_BASE_PATH),'/').$this->input); $this->cacheFilename .= '.' . (!empty($this->options['f']) ? $this->options['f'] : 'png'); } }