[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Re. Server Side Include Problem - RaQ3



I wanted to thank all of those who helped me with the scheduled server side
includes, and give a bit of feedback regarding the solution I found to my
problem.  I have found the following works perfectly, although of course it
will require 31 queries for each page and not just 3.  I must admit I am a
little worried this is going to kill my RaQ3 CPU, as I will have 12 pages
each with 31 queries on.

<!--#if expr="${DATE_LOCAL} = /27-Aug/" -->
<!--#include virtual="27aq.txt" -->
 <!--#else -->
 <!--#if expr="${DATE_LOCAL} = /28-Aug/" -->
<!--#include virtual="28aq.txt" -->
 <!--#else -->
 <!--#if expr="${DATE_LOCAL} = /29-Aug/" -->
<!--#include virtual="29aq.txt" -->
 <!--#else -->
  <B>no data for this date</B><BR>
<!--#endif -->

I suppose if I wanted to delve a little deeper I could probably set a
variable and make it todays date, then query if variable = 27-Aug.  Would
that make only 1 date_local query per page instead of 31?