Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Cache_Lite

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class Cache_Lite_File

Description

This class extends Cache_Lite and offers a cache system driven by a master file

With this class, cache validity is only dependent of a given file. Cache files are valid only if they are older than the master file. It's a perfect way for caching templates results (if the template file is newer than the cache, cache must be rebuild...) or for config classes... There are some examples in the 'docs/examples' file Technical choices are described in the 'docs/technical' file

Located in /pear/cache/lite/File.php (line 24)

Class Cache_Lite

Class Cache_Lite_File
Variable Summary
Method Summary
Constructor Cache_Lite_File Cache_Lite_File ([array $options = array(NULL)])
Method string get (string $id, [string $group = 'default'])
Methods
Constructor Cache_Lite_File (line 60)

Constructor

$options is an assoc. To have a look at availables options, see the constructor of the Cache_Lite class in 'Cache_Lite.php'

Comparing to Cache_Lite constructor, there is another option : $options = array( (...) see Cache_Lite constructor 'masterFile' => complete path of the file used for controlling the cache lifetime(string) );

  • access: public
Cache_Lite_File Cache_Lite_File ([array $options = array(NULL)])
  • array $options: options
get (line 82)

Test if a cache is available and (if yes) return it

  • return: data of the cache (or false if no cache available)
  • access: public
string get (string $id, [string $group = 'default'])
  • string $id: cache id
  • string $group: name of the cache group

Redefinition of:
Cache_Lite::get()
Test if a cache is available and (if yes) return it

Inherited Methods

Inherited From Cache_Lite

 Cache_Lite::Cache_Lite()
 Cache_Lite::clean()
 Cache_Lite::extendLife()
 Cache_Lite::get()
 Cache_Lite::getMemoryCachingState()
 Cache_Lite::lastModified()
 Cache_Lite::raiseError()
 Cache_Lite::remove()
 Cache_Lite::save()
 Cache_Lite::saveMemoryCachingState()
 Cache_Lite::setLifeTime()
 Cache_Lite::setOption()
 Cache_Lite::setToDebug()

Documentation generated on Mon, 05 Mar 2007 20:58:41 +0000 by phpDocumentor 1.3.1