kernel/private/interfaces/ezpstaticcache.php
File containing the ezpStaticCache interface
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\ezpStaticCache
This interface is used as the basis for the different StaticCache engine implementation
- Children
- \eZStaticCache
Methods

cacheURL(
string $url, int | false $nodeID
=
false, bool $skipExisting
=
false, $delay
=
true
)
:
boolGenerates the caches for the url $url using the currently configured storageDirectory().
| Name | Type | Description |
|---|---|---|
| $url | string | The URL to cache, e.g /news |
| $nodeID | int | false | The ID of the node to cache, if supplied it will also cache content/view/full/xxx. |
| $skipExisting | bool | If true it will not unlink existing cache files. |
| $delay |
| Type | Description |
|---|---|
| bool |

executeActions(
)
:
voidThis function goes over the list of recorded actions and excecutes them.

generateAlwaysUpdatedCache(
bool $quiet
=
false, \eZCLI | false $cli
=
false, bool $delay
=
true
)
:
voidGenerates the caches for all URLs that must always be generated.
| Name | Type | Description |
|---|---|---|
| $quiet | bool | If true then the function will not output anything. |
| $cli | \eZCLI | false | The eZCLI object or false if no output can be done. |
| $delay | bool |

generateCache(
bool $force
=
false, bool $quiet
=
false, \eZCLI | false $cli
=
false, bool $delay
=
true
)
:
voidGenerates the static cache from the configured INI settings.
| Name | Type | Description |
|---|---|---|
| $force | bool | If true then it will create all static caches even if it is not outdated. |
| $quiet | bool | If true then the function will not output anything. |
| $cli | \eZCLI | false | The eZCLI object or false if no output can be done. |
| $delay | bool |

generateNodeListCache(
array $nodeList
)
:
boolRequests the StaticCache handler to (re-)generate cache for a given node list.
| Name | Type | Description |
|---|---|---|
| $nodeList | array | Node list |
| Type | Description |
|---|---|
| bool | True if the operation succeed. |