[ Index ]
osCommerce Docs :: PHP Cross Reference For osCommerce 2.2 MS2
Provided By OSCdox.com

/includes/functions/ -> cache.php (summary)

[Source view]

(no description)

Author: (None specified)
File Size: 152 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 2 files
 includes/boxes/categories.php
 includes/boxes/manufacturers.php

Defines 6 functions

  write_cache()
  read_cache()
  get_db_cache()
  tep_cache_categories_box()
  tep_cache_manufacturers_box()
  tep_cache_also_purchased()

Functions

Functions that are not part of a class:
write_cache(&$var, $filename)   X-Ref
Write out serialized data.
write_cache uses serialize() to store $var in $filename.
$var      -  The variable to be written out.
$filename -  The name of the file to write to.

read_cache(&$var, $filename, $auto_expire = false)   X-Ref
Read in seralized data.
read_cache reads the serialized data in $filename and
fills $var using unserialize().
$var      -  The variable to be filled.
$filename -  The name of the file to read.

get_db_cache($sql, &$var, $filename, $refresh = false)   X-Ref
Get data from the cache or the database.
get_db_cache checks the cache for cached SQL data in $filename
or retreives it from the database is the cache is not present.
$SQL      -  The SQL query to exectue if needed.
$filename -  The name of the cache file.
$var      -  The variable to be filled.
$refresh  -  Optional.  If true, do not read from the cache.

tep_cache_categories_box($auto_expire = false, $refresh = false)   X-Ref
Cache the categories box
Cache the categories box

tep_cache_manufacturers_box($auto_expire = false, $refresh = false)   X-Ref
Cache the manufacturers box
Cache the manufacturers box

tep_cache_also_purchased($auto_expire = false, $refresh = false)   X-Ref
Cache the also purchased module
Cache the also purchased module



Generated: Tue Nov 4 23:53:39 2003
Hosted By :: AABox.com
Cross-referenced by PHPXref 0.4