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

1195 3842

Last Topic: Comment form customization by anisa on Feb 8, 2010

60 184

Last Topic: Dynamic Publishing - Blank Screen by Sivaram M on Dec 15, 2009

955 2985

Last Topic: MT5 - Cookie Problems by Dave Cross on Feb 9, 2010

68 213

Last Topic: How to add Custom Fields by gregoryttp on Feb 5, 2010

19 67

Last Topic: Custom main index page by Richard on Feb 7, 2010

42 169

Last Topic: I want to write my own wordpress plugin by Xarzu on Jan 31, 2010

11 21

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

52 178

Last Topic: Assets - No options by Chelle on Feb 5, 2010

code.sixapart.com

128 444

Last Topic: ActionStream with Movable Type 5.01 by Parneix on Jan 24, 2010

154 468

Last Topic: URGENT! Help needed w/ Virus by PhilContrino on Feb 1, 2010