<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2009://24/tag:forums.movabletype.org,2008://24.11398-</id>
  <updated>2009-11-28T12:32:21Z</updated>
  <title>Comments for Recursive Scheduled Publish </title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>
  <entry>
    <id>tag:forums.movabletype.org,2008://24.11398</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=11398" title="Recursive Scheduled Publish " />
    <published>2008-11-20T22:58:00Z</published>
    <updated>2008-12-18T21:55:07Z</updated>
    <title>Recursive Scheduled Publish </title>
    <summary>I have 2 rss feeds in a given blog which are generated by 2 different templates. I want to publish RSS-1 every hour and RSS-2 once a day. How do I do this in MT? I tried publish queue but...</summary>
    <author>
      <name>Ashish Nagpal</name>
      
    </author>
    
    <category term="Design, Templates, &amp; Tags" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I have 2 rss feeds in a given blog which are generated by 2 different templates. I want to publish RSS-1 every hour and RSS-2 once a day. How do I do this in MT?</p>

<p>I tried publish queue but it seems that it acts on the whole instance and can not be configured at template level for interval.</p>

<p>I am open to any suggestions or options to find a solution to this requirement. Thanks</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11398-comment:14568</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11398" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html#c14568" />
    <title>Comment from Mike T on 2008-11-20</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Here's a work around:</p>

<p>1) Enable template module caching.</p>

<p>2) Create a template module for the contents of each of those templates you listed above.</p>

<p>3) Set the expiration time on the first to 1 hour, set it to 1 day on the RSS 2 module.</p>

<p>4) Change the content of the RSS index templates to have a single statement &lt;mt:Include module="MODULE_NAME"&gt;</p>]]>
    </content>
    <published>2008-11-20T23:12:20Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11398-comment:14917</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11398" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html#c14917" />
    <title>Comment from Ashish Nagpal on 2008-12-04</title>
    <author>
        <name>Ashish Nagpal</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Hi Mike,</p>

<p>Thanks for your reply.</p>

<p>As per your suggestion I implemented the 'scheduled publishing recursively on different interval' using 'template module caching'. But there seems to be one issue in this approach.</p>

<p>Point 1: MT is able to cache the index template(s) - which means it does not publish the 'Index Template' until the expiry of the 'Template Module' included in it.</p>

<p>Point 2: MT also does not publish the 'Index Template' BY ITSELF after the expiry of the 'Template Module' included in it. - you need some trigger point which publishes index templates like [write an entry] / [set up a cron job via publish Q] / [manually publish]</p>

<p>Point 3: Consider a usecase -<br />
A) The expiry time for 'Template Module' is set to 5 mins which is included in an Index Template 'RSS'.<br />
B) At 12:10pm all index templates were published including RSS - so all files are up to date<br />
C) Editor logs in and publishes a new entry at 12:11pm - this will publish all index templates EXCEPT RSS<br />
D) RSS is not published because it was cached at 12:10pm and will not publish until 12:15pm</p>

<p>E) At 12:15pm, I have nothing to publish which means the newly published Entry will never appear in my RSS until somebody publishes the index template after 12:15 ? Am I correct ?</p>

<p>Is there a solution to it ? (I can set a cron job at minimum time possible)</p>

<p>Also I have another finding, can you please confirm on it: When you use the Publish feature of MT it will publish only those templates whose output have some update. If there is no change in the final output file - it wont publish it ?</p>

<p>Thanks,<br />
Ashish</p>]]>
    </content>
    <published>2008-12-05T01:33:21Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11398-comment:14971</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11398" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html#c14971" />
    <title>Comment from Mike T on 2008-12-05</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p><a href="http://plugins.movabletype.org/mtrebuild/">Try this</a>, then. Add it to your crontab and you should be good to go.</p>]]>
    </content>
    <published>2008-12-05T20:14:41Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11398-comment:15328</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11398" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/recursive-scheduled-publish.html#c15328" />
    <title>Comment from Ashish Nagpal on 2008-12-18</title>
    <author>
        <name>Ashish Nagpal</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Thanks Mike.</p>

<p>mt_rebuild seems to be the right candidate for this kind of requirement.</p>]]>
    </content>
    <published>2008-12-18T21:55:07Z</published>
  </entry>

</feed>
