SilverStripe\Sakemore\Commands\FlushCacheRole
This class gives the ability to flush any of Silverstripe's major caches.
To extend functionality in this class
Synopsis
class FlushCacheRole
extends DataExtension
{
- // constants
- const CMD_FLUSHCACHE = 'clear';
- // methods
- public void commands()
- public void help_brief()
- public void help_parameters()
- public void help_examples()
- protected void availableCommands()
- public void flushCache()
- public void flushImage()
- protected void getDirList()
- protected void getFileList()
- public void flushTemplate()
- public void flushLanguage()
- public void flushManifest()
- public void flushCombined()
Hierarchy
Extends
- DataExtension
Constants
Name | Value |
---|---|
CMD_FLUSHCACHE | 'clear' |
Methods
protected
- availableCommands() — Gets a list of the flush commands avilable.
- getDirList() — Recursively gets a list of directories.
- getFileList() — Non-recursively gets a list of files from a given directory.
public
- commands() — Tell sake more about this command.
- flushCache() — Flushes internal caches.
- flushCombined() — Rebuilds the cache for combined CSS and JS files.
- flushImage() — Finds and deletes the _resampled directory contents for cached images.
- flushLanguage() — Clears the cache for multiple languages.
- flushManifest() — Rebuilds the config and class manifests.
- flushTemplate() — Clears cached template files.
- help_brief() — Gives sake a brief for the help section.
- help_examples() — Gives sake a list of examples of how to use this command.
- help_parameters() — Gives sake a list of the parameters used.