Contributions
Page Cache v1.0 - MS2
This contribution caches pages while allowing dynamic elements such as shopping cart items.
This contribution is designed to decrease server load and increase page performance.
Expand All / Collapse All
if you have a error like
fatal error: bla bla bla
cause the page cache don't find the cache dir upload this file and replace or open pache_cache.php and replace:
$this->cache_dir = DIR_FS_CATALOG . '/cache/';
with this:
$this->cache_dir = DIR_FS_CATALOG . 'cache/';
just a updates not full file here, contain only patch and bug fix below.
orginal credits to the contributor.
In includes/classes/page_cache.php, the str_replace for $this->cache_param was being ignored since cache_param is set again later, overwriting the str_replace. The attached file contains only the instructions for correcting this so you'll need to download a previous version for a full install.
This package has one file: includes/classes/page_cache.php
It is suppose to be a one file drop in upgrade to those that have this contribution installed.
NOTES
=========
This patch implements a basic garbage collection system. The previous code checked for file expiration but did not remove it from the system if expired. This patch has a GC system that has a 5% chance of being triggered where once activated will remove all files that are expired.
This will keep the number of files being stored to a workable number.
INSTALLTION
==============
Overwrite the page_ache.php class with the one provided.
Corrected minor bug with resetting the cache with the glob function. PHP versions 4.3.10 and higher require a strict declaration of search pattern and flag.
Fixed breadcrumb bug. New install directions.
This is the production release. Enjoy.
Bobby
Fixed bugs with session_id
New install / upgrade directions
Added multi-language and currency support.
Also, added $cart_cache debug output.
This contribution caches pages while allowing dynamic elements such as shopping cart items.
This contribution is designed to decrease server load and increase page performance.
Note: Contributions are used at own risk.