Hi Tony

I had a bit of a problem working this one out at the beginning.

The PHP cache is just a place where the final PHP pages get assembled from the styles, midgard pages, elements etc. There is a cache for staging (in a folder called cache) and a cache for live (in a folder called cachelive) so the files don't overlap. Say you have a front page which has a style and a few page elements - the cache contains the final PHP code for the whole page and if you update one of the elements, then it should write new versions of any PHP pages that contain that element.

This cache should not be confused with a Squid cache which caches the final HTML output from the PHP page. One PHP page in the midgard cache may generate thousands of different HTML pages depending on the arguments handed to it.

I don't see any reason why you wouldn't want to use the midgard PHP cache at all times.

The only problem I've had is that sometimes if you update a style element, the page doesn't always get re-written. So I just go to the page itself and edit >submit without changing it and that will write over the cached version. The other good thing about the midgard PHP cache is that when your scripts choke, you can see the line number of the cached version and work out which element is causing the problem.

Cheers
James

Tony Lee wrote:

Hi All,

I can't seem to get a grip on the mod-midgard-preparser. So it caches everything to /var/www/midgardpages?

Once I've done a make install and included it in my midgard-data configuration how do I turn it off if I want to test how things are working without it?

I'm also a little confused about how this will work with a staging/live setup. What happens when the 2 servers are both looking in the same folder for their cached pages? They don't overlap? And if they do how can I set up the Aegir staging/live server to avoid it?

Thanks for any advice!

Tony



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to