Smarty 3 is a lot more vocal about cache filename length
Smarty 3 is a lot more vocal about cache filename length

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -176,6 +176,10 @@
 
 		if (!empty($subCacheKey))
 			$cacheKey .= '|' . $subCacheKey;
+
+		if (strlen($cacheKey) > 100) {
+			$cacheKey = sha1($cacheKey);
+		}
 
 		return $cacheKey;
 	}

comments