in reply to mySQL hits or Storable retrieves?
The answer to question 4 (are you making it too complicated?), is probably yes. Grab your HTML::Template man-page, and do a search for "file_cache". Here's one I prepared earlier:
Now isn't that neat? HTML::Template already knows about the Storable module, and the comments underneath make note about it using flock() to make sure everything behaves. (Regular caveat about file-locking being broken on NFS applies.)file_cache - if set to 1 the module will store its cache in a file using the Storable module. It uses no additional memory, and my simplistic testing shows that it yields a 50% performance advantage. Like shared_cache, it will work in a CGI environment. Default is 0.
Hope that you find the above useful.
Cheers,
Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mySQL hits or Storable retrieves?
by Hero Zzyzzx (Curate) on Oct 02, 2001 at 18:25 UTC | |
by pjf (Curate) on Oct 03, 2001 at 03:01 UTC | |
|
Re: Re: mySQL hits or Storable retrieves?
by perrin (Chancellor) on Oct 02, 2001 at 18:46 UTC |