diff --git a/core/lib/Drupal/Core/Cache/CacheOptionalInterface.php b/core/lib/Drupal/Core/Cache/CacheOptionalInterface.php
new file mode 100644
index 0000000000000000000000000000000000000000..a7f6317b5edb557f145e6db6077bdb0a126e8b58
--- /dev/null
+++ b/core/lib/Drupal/Core/Cache/CacheOptionalInterface.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Drupal\Core\Cache;
+
+/**
+ * Indicates that caching is optional.
+ *
+ * This interface is backported to Drupal 10.5 to make it easier to support it,
+ * There are no usages in Drupal core before 11.2
+ */
+interface CacheOptionalInterface {
+
+}