My experience with SSI is that it's lightning fast but pretty limited in functionality. In time you'll probably think up lots of neat functions you want to include but can't because SSI isn't really a programming language, just a method of customizing pages.
If the number of user groups in your application is low, and the main performance hit you're worried about is the cost of data manipulation and page generation rather than the overhead of spawning a new perl process for each request, you'd probably do allright with some kind of caching scheme:
- A request for a customized page arrives.
- Your script checks the cache (on disk) if that page has already been generated for this user group. If so, it is read from file and served to the client.
- Otherwise, a new page is generated from scratch, saved to the cache, and served to the client.
Of course, running under mod_perl would allow you to keep the cache in memory, but I imagine that even a simple file cache would speed up execution.
Cheers,
-- moodster
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.