diff --git a/htdocs/includes/dolibarr_changes.txt b/htdocs/includes/dolibarr_changes.txt
index 70ec1ccc07c97295d928d797b74e0640dc3ba970..0eb1163629511a937207c275df4fd3614a387493 100644
--- a/htdocs/includes/dolibarr_changes.txt
+++ b/htdocs/includes/dolibarr_changes.txt
@@ -32,6 +32,11 @@ public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=
 
 * Removed all fonts except dejavu* (greek, arab, persan, romanian, turkish), freemono* (russian), stsongstdlight* (chinese), helvetica* (all other) and useless directories (fonts/utils, docs, cache, images)
 
+* Replace in tcpdf_config.php
+define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
+with
+define ('K_PATH_CACHE', DOL_DATA_ROOT.'/admin/temp/');
+dol_mkdir(K_PATH_CACHE);
 
 
 JSGANTT:
diff --git a/htdocs/includes/tcpdf/config/tcpdf_config.php b/htdocs/includes/tcpdf/config/tcpdf_config.php
index 811145f767113d1076ffd34649989dc4484bb36e..55304504120c37b43bb23e689872e7a6d16be42e 100644
--- a/htdocs/includes/tcpdf/config/tcpdf_config.php
+++ b/htdocs/includes/tcpdf/config/tcpdf_config.php
@@ -81,7 +81,9 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
 	/**
 	 * cache directory for temporary files (full path)
 	 */
-	define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
+//	define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
+define ('K_PATH_CACHE', DOL_DATA_ROOT.'/admin/temp/');
+dol_mkdir(K_PATH_CACHE);
 
 	/**
 	 * cache directory for temporary files (url path)