diff --git a/public/lib/psr/cache/CHANGELOG.md b/public/lib/psr/cache/CHANGELOG.md
new file mode 100644
index 00000000000..58ddab05aa1
--- /dev/null
+++ b/public/lib/psr/cache/CHANGELOG.md
@@ -0,0 +1,16 @@
+# Changelog
+
+All notable changes to this project will be documented in this file, in reverse chronological order by release.
+
+## 1.0.1 - 2016-08-06
+
+### Fixed
+
+- Make spacing consistent in phpdoc annotations php-fig/cache#9 - chalasr
+- Fix grammar in phpdoc annotations php-fig/cache#10 - chalasr
+- Be more specific in docblocks that `getItems()` and `deleteItems()` take an array of strings (`string[]`) compared to just `array` php-fig/cache#8 - GrahamCampbell
+- For `expiresAt()` and `expiresAfter()` in CacheItemInterface fix docblock to specify null as a valid parameters as well as an implementation of DateTimeInterface php-fig/cache#7 - GrahamCampbell
+
+## 1.0.0 - 2015-12-11
+
+Initial stable release; reflects accepted PSR-6 specification
diff --git a/public/lib/psr/cache/LICENSE.txt b/public/lib/psr/cache/LICENSE.txt
new file mode 100644
index 00000000000..b1c2c97b9d4
--- /dev/null
+++ b/public/lib/psr/cache/LICENSE.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2015 PHP Framework Interoperability Group
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/public/lib/psr/cache/README.md b/public/lib/psr/cache/README.md
new file mode 100644
index 00000000000..9855a318bd4
--- /dev/null
+++ b/public/lib/psr/cache/README.md
@@ -0,0 +1,12 @@
+Caching Interface
+==============
+
+This repository holds all interfaces related to [PSR-6 (Caching Interface)][psr-url].
+
+Note that this is not a Caching implementation of its own. It is merely interfaces that describe the components of a Caching mechanism.
+
+The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist.
+
+[psr-url]: https://www.php-fig.org/psr/psr-6/
+[package-url]: https://packagist.org/packages/psr/cache
+[implementation-url]: https://packagist.org/providers/psr/cache-implementation
diff --git a/public/lib/psr/cache/composer.json b/public/lib/psr/cache/composer.json
new file mode 100644
index 00000000000..4b687971e4c
--- /dev/null
+++ b/public/lib/psr/cache/composer.json
@@ -0,0 +1,25 @@
+{
+ "name": "psr/cache",
+ "description": "Common interface for caching libraries",
+ "keywords": ["psr", "psr-6", "cache"],
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "require": {
+ "php": ">=8.0.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Cache\\": "src/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ }
+}
diff --git a/public/lib/psr/cache/readme_moodle.txt b/public/lib/psr/cache/readme_moodle.txt
new file mode 100644
index 00000000000..e741f3e425a
--- /dev/null
+++ b/public/lib/psr/cache/readme_moodle.txt
@@ -0,0 +1,10 @@
+# Caching Interface (PSR-6)
+
+This is a description for including the Caching Interface (PSR-6) in Moodle
+
+## Installation
+
+1. Visit https://github.com/php-fig/cache
+2. Download the latest release
+3. Unzip in this folder
+4. Update `thirdpartylibs.xml`
diff --git a/public/lib/psr/cache/src/CacheException.php b/public/lib/psr/cache/src/CacheException.php
new file mode 100644
index 00000000000..bb785f46ceb
--- /dev/null
+++ b/public/lib/psr/cache/src/CacheException.php
@@ -0,0 +1,10 @@
+
MIT
https://github.com/Seldaek/monolog
+
+ psr/cache
+ cache
+ Caching Interface (PHP FIG PSR-6).
+ 3.0.0
+ MIT
+ https://github.com/php-fig/cache
+