Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-06T19:03:27-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=6499 2012-01-06T19:03:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=59876#p59876 <![CDATA[Re: Exclude the homepage from caching]]> this posting for now!

Jim

Statistics: Posted by doctorproctor — January 6th, 2012, 7:03 pm


]]>
2011-11-08T15:12:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=52566#p52566 <![CDATA[Re: Exclude the homepage from caching]]>
under the no cache uri you can put links for things that should not be cached. if i just put '/' will that work?

Statistics: Posted by ayman07 — November 8th, 2011, 3:12 pm


]]>
2011-05-20T16:13:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=15521#p15521 <![CDATA[Re: Exclude the homepage from caching]]>
Thanks again.

Statistics: Posted by Darsch — May 20th, 2011, 4:13 pm


]]>
2011-05-20T16:08:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=15520#p15520 <![CDATA[Re: Exclude the homepage from caching]]> Statistics: Posted by julian1828 — May 20th, 2011, 4:08 pm


]]>
2011-05-20T16:00:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=15519#p15519 <![CDATA[Re: Exclude the homepage from caching]]> Why it isn't a recommended fix? This doesn't seems to have any sort of strange side-effect or similar, does it?

Statistics: Posted by Darsch — May 20th, 2011, 4:00 pm


]]>
2011-05-20T15:26:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=15517#p15517 <![CDATA[Re: Exclude the homepage from caching]]> So this isn't a recommended fix, but it works.

  • Navigate to /wp-content/plugins/quick-cache/includes/templates/handler.tpl.php
  • Insert this at line 80:
    Code:
    else if ($_SERVER["REQUEST_URI"] == "/")
        {
            return; /* Return now. Nothing more to do here. */
        } 
  • Save that.
  • Delete /wp-content/advanced-cache.php (for good measure)
  • Go to the settings for the Quick Cache.
  • Don't make any changes, just re-save the settings. This will recreate the advanced-cache.php file with your new changes.

Suggestion to developers:
I wish there was some filtering abilities on the cache. Such as, in the advanced-cache.php if statement, there should be an else if statement that runs a filter and returned result of the filter decides whether or not to continue. Here is an example of what I am talking about:
Code:
else if (apply_filters ("ws_plugin__qcache_handler_validate", false))
    {
        return;
    } 
(same area as what I said above this section)

So then I would be able to attach a filter to the if statement in the advanced-cache.php. This would be useful for using my own criteria to decide what should be cached. Now I know this is probably a whole solution, as per the cron, etc., but it definitely be an improvement.

Statistics: Posted by julian1828 — May 20th, 2011, 3:26 pm


]]>
2011-05-19T18:40:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6499&p=15449#p15449 <![CDATA[Exclude the homepage from caching]]>
Is there a way to exclude from the cache just the homepage? I've got a widget that randomize some stuff, and it would be great if I can avoid caching.
It seems that in the "No-Cache URI Patterns" field there's no way to put the site homepage.

Thanks, regards.

Statistics: Posted by Darsch — May 19th, 2011, 6:40 pm


]]>