in reply to Re: Caching data with mod_perl
in thread Caching data with mod_perl

You really should have a look at Apache::Cache, too! It's doing exactly what you described.. The bad news is, that it doesn't come with the standard package and is likely to not be installed on the machine you want to have it run on.

A more general approach would be using Apache::Storage, which isn't included by default either :( Both of the above modules provide inter-process shared memory, btw.

If you really do want to do it yourself, I would at least look how this modules are doing their job; you probably can learn a lot by doing this.. Especially using shared memory is something you really do want to have..

Regards,
-octo

Replies are listed 'Best First'.
Re: Re: Re: Caching data with mod_perl
by perrin (Chancellor) on Jul 14, 2002 at 21:56 UTC
    In general, you get better performance from disk-based solutions to sharing. I'm doing some benchmarking right now, and so far MLDBM::Sync (using SDBM_File) and Cache::Mmap are beating the pants off modules that use shared memory. The only exception to this is IPC::MM which has phenomenal performance.
      Really? That seems pretty counter-intuitive. I'll have to check these out.

      -caedes