From a7be8003e066bfb80bb6e281cf421a7f7fe8d268 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 9 Feb 2015 22:55:59 +1300 Subject: [PATCH] Fix some broken links for flushable and errors in the caching code examples --- docs/en/02_Developer_Guides/08_Performance/01_Caching.md | 4 ++-- .../02_Developer_Guides/16_Execution_Pipeline/01_Flushable.md | 2 +- .../02_Developer_Guides/16_Execution_Pipeline/02_Manifests.md | 2 +- docs/en/02_Developer_Guides/16_Execution_Pipeline/index.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/02_Developer_Guides/08_Performance/01_Caching.md b/docs/en/02_Developer_Guides/08_Performance/01_Caching.md index 91a08140d..578d895ac 100644 --- a/docs/en/02_Developer_Guides/08_Performance/01_Caching.md +++ b/docs/en/02_Developer_Guides/08_Performance/01_Caching.md @@ -51,7 +51,7 @@ The returned object is of type `Zend_Cache`. $cache = SS_Cache::factory('foo'); if (!($result = $cache->load($cachekey))) { $result = caluate some how; - $cache->save($result); + $cache->save($result, $cachekey); } return $result; @@ -103,7 +103,7 @@ which can provide better performance, including APC, Xcache, ZendServer, Memcach If `?flush=1` is requested in the URL, e.g. http://mysite.com?flush=1, this will trigger a call to `flush()` on any classes that implement the `Flushable` interface. Using this, you can trigger your caches to clean. -See [reference documentation on Flushable](/reference/flushable) for implementation details. +See [reference documentation on Flushable](/developer_guides/execution_pipeline/flushable/) for implementation details. ### Memcached diff --git a/docs/en/02_Developer_Guides/16_Execution_Pipeline/01_Flushable.md b/docs/en/02_Developer_Guides/16_Execution_Pipeline/01_Flushable.md index 9872257eb..e46ef19b5 100644 --- a/docs/en/02_Developer_Guides/16_Execution_Pipeline/01_Flushable.md +++ b/docs/en/02_Developer_Guides/16_Execution_Pipeline/01_Flushable.md @@ -31,7 +31,7 @@ This example uses `[api:SS_Cache]` in some custom code, and the same cache is cl $something = $cache->load('mykey'); if(!$something) { $something = 'value to be cached'; - $cache->save($something); + $cache->save($something, 'mykey'); } return $something; } diff --git a/docs/en/02_Developer_Guides/16_Execution_Pipeline/02_Manifests.md b/docs/en/02_Developer_Guides/16_Execution_Pipeline/02_Manifests.md index 269382e26..694d5190a 100644 --- a/docs/en/02_Developer_Guides/16_Execution_Pipeline/02_Manifests.md +++ b/docs/en/02_Developer_Guides/16_Execution_Pipeline/02_Manifests.md @@ -76,7 +76,7 @@ The chapter on [configuration](/topics/configuration) has more details. ## Flushing If a `?flush=1` query parameter is added to a URL, a call to `flush()` will be triggered -on any classes that implement the [Flushable](/reference/flushable) interface. +on any classes that implement the [Flushable](flushable) interface. This enables developers to clear [manifest caches](manifests), for example when adding new templates or PHP classes. Note that you need to be in [dev mode](/getting_started/environment_management) diff --git a/docs/en/02_Developer_Guides/16_Execution_Pipeline/index.md b/docs/en/02_Developer_Guides/16_Execution_Pipeline/index.md index e250b8b9b..45310ae44 100644 --- a/docs/en/02_Developer_Guides/16_Execution_Pipeline/index.md +++ b/docs/en/02_Developer_Guides/16_Execution_Pipeline/index.md @@ -130,7 +130,7 @@ The ["Request Filters" documentation](../controller/request_filters) shows you h ## Flushing Manifests If a `?flush=1` query parameter is added to a URL, a call to `flush()` will be triggered -on any classes that implement the [Flushable](/reference/flushable) interface. +on any classes that implement the [Flushable](flushable) interface. This enables developers to clear [manifest caches](manifests), for example when adding new templates or PHP classes. Note that you need to be in [dev mode](/getting_started/environment_management)