diff --git a/en/02_Developer_Guides/08_Performance/01_Caching.md b/en/02_Developer_Guides/08_Performance/01_Caching.md index 212937cf9..69722e98d 100644 --- a/en/02_Developer_Guides/08_Performance/01_Caching.md +++ b/en/02_Developer_Guides/08_Performance/01_Caching.md @@ -141,7 +141,7 @@ use SilverStripe\Core\Injector\Injector; $cache = Injector::inst()->get(CacheInterface::class . '.myCache'); -// remove the cache item +// set a cache item with an expiry $cache->set('myCacheKey', 'myValue', 300); // cache for 300 seconds ```