mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3865 from nfauchelle/cache-flush-doc-fix
Fixes to some doc pages
This commit is contained in:
commit
54227a5462
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user