/includes/index_cache.php

Description

Index caching functions

phpGedView: Genealogy Viewer Copyright (C) 2002 to 2005 PGV Development Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: index.php 226 2006-07-07 19:54:29Z yalnifj $
Functions
clearCache (line 128)

clears the cache files

void clearCache ()
loadCachedBlock (line 38)

load a cached block from a file

  • return: returns false if the block could not be loaded from cache
boolean loadCachedBlock (array $block, int $index)
  • array $block: [0]:name of the block to load, [1]:block's configuration
  • int $index: An id for this block in the case of multiple instances of the same block on the page
saveCachedBlock (line 92)

Save a block's content to the cache file

  • return: returns false if the block could not be loaded from cache
boolean saveCachedBlock (array $block, int $index, string $content)
  • array $block: [0]:name of the block to save, [1]:block's configuration
  • int $index: An id for this block in the case of multiple instances of the same block on the page
  • string $content: the actual content to save in the cache

Documentation generated on Wed, 28 Mar 2007 09:54:24 -0600 by phpDocumentor 1.3.1