You are here:  » Simple Site Cache

Active Forum Topics


Simple Site Cache

Submitted by crounauer on Fri, 2019-12-06 18:14 in

Hi David,

I am looking at implementing a simple site cache as follows: -

{code saved}

Can you foresee any problems with doing this? I am trying to get my sites as fast as possible and this really speeds things up for me.

Thanks,
Simon

Submitted by support on Mon, 2019-12-09 11:15

Hi Simon,

I would suggest adding code to the end of cron.php to clear the cache so that new pages are served with updated prices whenever feeds have been updated...

Cheers,
David.
--
PriceTapestry.com

Submitted by crounauer on Mon, 2019-12-09 11:31

Hi David,

Yes, agreed. My plan is to do the following: -

1. Run cron.php
2. Delete existing cache
3. Run a shell script to call all pages and re-create the cache

Do this every 5 hours.

Thanks,
Simon