UserFrosting API

CacheHelper

Provides helper function to delete the Twig cache directory.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

$ci ContainerInterface
__construct() Constructor. mixed
clearCache() Function that delete the Twig cache directory content. bool

Properties

Methods

__construct()

Constructor.

public __construct( $ci : ContainerInterface ) : mixed
Parameters
$ci : ContainerInterface

The global container object, which holds all your services.

Return values
mixed

clearCache()

Function that delete the Twig cache directory content.

public clearCache( ) : bool
Return values
bool

true/false if operation is successfull

Search results