diff --git a/app/uploaders/piece_justificative_uploader.rb b/app/uploaders/piece_justificative_uploader.rb index 5f26b3d5f..868ca5bef 100644 --- a/app/uploaders/piece_justificative_uploader.rb +++ b/app/uploaders/piece_justificative_uploader.rb @@ -20,7 +20,11 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base def cache_dir if Rails.env.production? - '/tmp/tps-cache' + if Features.opensimplif? + '/tmp/opensimplif-cache' + else + '/tmp/tps-cache' + end else '/tmp/tps-dev-cache' end