Hi,

I'm trying to speed up my site a bit - and as such, I'm trying to move some of my AJAX scripts into SSI requests (and embed them in the page);
var booking_json = <!--#include virtual="/cgi-bin/links/booking_load.c +gi?linkid=<%ID%>"-->;
This works fine... but the problem I'm having, is that the page is actually SLOWER now :(

HTML page before: 213ms
HTML page after: 618ms

As such, that slows the rest of the requests down as well (as its got to wait for the HTML to render)

So my question.... should/is mod_perl being used for the SSI requests? Or so I need to do anything specific to invoke it?

EDIT: I found this post: http://docstore.mik.ua/orelly/perl/perlnut/ch11_05.htm ....however, when I try:

<!--#perl sub="Apache::Include" arg="/cgi-bin/links/spots_load_new.cgi?catid=0&linkid=45&t=espanol"-->

I get an an error occurred while processing this directive error... and then this in the error log: [Wed Dec 02 08:26:33 2015] [error] [client 81.174.134.33] unknown directive "perl" in parsed doc /home/public_html/espanol/Detailed/45-test2.html

Thanks!

Andy

In reply to Using mod_perl, with SSI? by ultranerds

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.