Skip to content

Commit

Permalink
Merge pull request #14 from ec-europa/nept-2975
Browse files Browse the repository at this point in the history
NEPT-2975: Prevent purge for File
  • Loading branch information
julien- authored Apr 7, 2022
2 parents 354d736 + dde7392 commit 169058c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nexteuropa_varnish.module
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,10 @@ function _nexteuropa_varnish_trim_base_path($path, $base_path = NULL) {
* The file entity.
*/
function _nexteuropa_varnish_flush_file(&$file) {
if (_nexteuropa_varnish_prevent_purge()) {
return;
}

$scheme = file_uri_scheme($file->uri);
$base_name = drupal_basename($file->uri);

Expand Down

0 comments on commit 169058c

Please sign in to comment.