PHP Classes

File: cache.config.php

Recommend this page to a friend!
  Classes of Patxi Echarte   phpSuperCache   cache.config.php   Download  
File: cache.config.php
Role: ???
Content type: text/plain
Description: Configuration file
Class: phpSuperCache
Author: By
Last change:
Date: 23 years ago
Size: 2,247 bytes
 

Contents

Class file image Download
<?php /*-------------------------------------------------------------------------------- Application: phpSuperCache ========================== Archivo: cache.config.php Autor: Francisco Echarte [patxi@eslomas.com] Fecha: 2001-08-23 Version: 0.2 LICENCIA ======== copyright (c) 2001 Francisco Echarte [patxi@eslomas.com] This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library 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 Lesser General Public License for more details at http://www.gnu.org/copyleft/lgpl.html 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. Modificaciones: Observaciones: --------------------------------------------------------------------------------*/ // Ruta para la información de la cache $CACHE_CONFIG['data_dir'] = dirname(__FILE__).'/data/'; //Debe tener permisos de escritura y acabar en / // Especifica si se ejecuta autolimpieza de la cache y con qué frecuencia y cual es el // periodo máximo de existencia de un archivo $CACHE_CONFIG['run_cleanup'] = 0; $CACHE_CONFIG['cleanup_freq'] = 50; //valor entre 1 y 100. Cuanto mayor, más probabilidad de comprobar el dir. $CACHE_CONFIG['max_age'] = 86400; //Cuidado de que no tenga conflicto con ningún timing // Indica si hay que comprimir el resultado de cachear una página y con qué nivel. // El tercer elemento indica si hay que enviar comprimida la información al navegador // del usuario siempre que se pueda $CACHE_CONFIG['compress_output'] = 1; $CACHE_CONFIG['compress_level'] = 1; $CACHE_CONFIG['return_compressed'] = 1; //para intentar devolver el contenido comprimido si el //navegador lo soporta // Para guardar estadísticas de hits, misses y excls. $CACHE_CONFIG['save_stats'] = 1; ?>