Class NCachingHelper


Caching template helper.

NObject
   |
   --NCachingHelper
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Templates/Filters/CachingHelper.php (line 33)
Public Method Summary
void
addFile (string $file)
Adds the file dependency.
void
addItem (string $item)
Adds the cached item dependency.
static NCachingHelper
create (string $key, string $file, array $tags)
Starts the output cache. Returns NCachingHelper object if buffering was started.
void
save ()
Stops and saves the cache.
Protected Method Summary
protected static NCache
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 89

addFile

public void addFile (string $file)

Adds the file dependency.

Input
string $file
Output
void  

line 101

addItem

public void addItem (string $item)

Adds the cached item dependency.

Input
string $item
Output
void  

line 50

create

public static NCachingHelper create (string $key, string $file, array $tags)

Starts the output cache. Returns NCachingHelper object if buffering was started.

Input
string $key
string $file
array $tags
Output
NCachingHelper  

line 115

getCache

protected static NCache getCache ()

Output
NCache  

line 76

save

public void save ()

Stops and saves the cache.

Output
void