default userpic

Conditional retrieval of pages is not working under dynamic publishing

Vote 0 Votes

Hi All,

I have enabled dynamic publishing for my template and I have enabled "Enable Dynamic Cache" and "Enable Conditional Retrieval" settings.

When I try to view the page with different query parameters, it will display the same results.

http://www.abc.com/dir/filename.php?name=XYZ

http://www.abc.com/dir/filename.php?name=ABC

The below link suggests that we can use Enable Conditional retrieval to the use of conditional HTTP GET headers for pages.
http://www.movabletype.org/documentation/administrator/managing-blogs/settings/publishing-settings.html

If I disable the Enable Dynamic Cache checkbox then the content is displaying correctly based on the query parameter we are passing but the pages loads very slowly.

Is there any other way to cache the pages for the different query parameters we are passing?

Any help is truly appreciated.

Thanks,
Sunil

Reported on Movable Type 4.2

2 Replies

| Add a Reply
  • Hi Sunil -

    The dynamic cache needs to be enabled for your template modules, and really has nothing (directly) to do with dynamic publishing. Only if you are including a template module that has caching turned on in that case, the contents of a cached module won't change, no matter what you pass in the URL.

    Meanwhile, the conditional retrieval flag is - at best - poorly documented. But what is happening to you here is that dynamic publishing will cache your contents, and those contents, at least at one point, were cached based on the URL requested, and that URL does not include the query string.

    A long time ago, I modified mt.php to include this content in the cache, and I might be able to dig it up - or at least figure out where it was in the code - if you can let me know if you are still having problems. Please let me know!

  • Hi Chad Everett,

    Thanks for the reply.
    I still have the problem...If you could send me the changes, It will be a great help for me.

    Thanks,
    Sunil

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

694 2908

Last Topic: Blogspot to Movable Type by sdude on Feb 8, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012