You are here:  » Website cache

Support Forum



Website cache

Submitted by webie on Wed, 2007-04-25 19:06 in

I just wondering how diffcult would it be to enable website cache class in price tapestry code

I have downloaded free open source code http://acme-web-design.info/php-cache-kit.html
I would like to intergrate this code into price tapestry.

Could this class be intergrated easly or would i need expert PHP programmer.

Info
uses two global configuration variables: cache_active, cache_folder

To use: set cache_active = true, assign cache_folder
Next, call acmeCache::fetch instead of generating a page or module.
Only if it returns false, build the section then call acmeCache::save.

You only need these two functions and you do not need to
create an object -- the class wrapping is just to avoid namespace
conflicts with your existing code.

Usage example:

Do this stuff in your config file

include_once('cache-kit.php');
$cache_active = true;
$cache_folder = 'cache/';

Many Thanks
Darren

Submitted by support on Thu, 2007-04-26 09:03

Hi Darren,

As Price Tapestry is a heavily database driven script; generating potentially thousands of "virtual" pages I wouldn't recommend using a server side caching system.

Cheers,
David.