changed random categeories enumeration so it doesn't cache the query
authormtopper <mtopper>
Wed, 20 Jul 2005 04:05:47 +0000 (04:05 +0000)
committermtopper <mtopper>
Wed, 20 Jul 2005 04:05:47 +0000 (04:05 +0000)
etc/producer/producers.xml

index 7bf7ea5..432305a 100755 (executable)
   </verbs>
   <body>
        <Set key="counter" value="1"/>
-    <Enumerate key="category" table="topic t" 
-        selection="archiv_url = 'Category' AND (SELECT count(*) from content_x_topic where topic_id = t.id) > 0" order="RANDOM()" limit="4">
+       
+       <Enumerate key="category" table="topic t" extratables="topic t2"
+               selection="t.id=t2.id AND t.archiv_url = 'Category' AND (SELECT count(*) from content_x_topic where topic_id = t.id) > 0" order="RANDOM()" limit="4">
+       
         <Log message="Getting Last 5 articles for category: ${category.title} - counter: ${counter}" />
         <Define key="topictitle" value="${category.title}" />