PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Want To Cache Urls In Sitemap only

Quick Cache Plugin. Speeds up WordPress®.

Want To Cache Urls In Sitemap only

Postby bilalbhatti » May 17th, 2010, 4:35 pm

Hi, i want to cache all of my blog posts in SItemap. I don't want to cache any other URL. Just Sitemap URLs. How to configure Quick-Cache plugin to only cache sitemap URLs? :?:
User avatar
bilalbhatti
Registered User
Registered User
 
Posts: 2
Joined: May 17, 2010

Re: Want To Cache Urls In Sitemap only

Postby Jason Caldwell » May 19th, 2010, 1:44 am

Thanks for your question.
Quick Cache uses your Sitemap, only in conjunction with it's Auto-Cache Engine. So you can use a Sitemap to tell Quick Cache which URLs you want cached automatically, but this does NOT determine "overall", which URLs are allowed to be cached. That capability is not provided by the Quick Cache plugin.

However, there are several filters you can apply, see: Quick Cache -> General Options. You might give those a try. See if you can come up with a creative way to exclude anything buts Posts. You could also use a special PHP Constant inside your WordPress® theme. This will disable Quick Cache on everything, except Posts. You can put this inside the functions.php file for your WordPress® theme.

Code: Select all
<?php if(!is_single() || is_page())
   define("QUICK_CACHE_ALLOWED", false);
?>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Want To Cache Urls In Sitemap only

Postby bilalbhatti » May 19th, 2010, 1:26 pm

Its cache 404 pages too,

<?php if(is_404())
define("QUICK_CACHE_ALLOWED", false);
?>

Will it solve the problem?
User avatar
bilalbhatti
Registered User
Registered User
 
Posts: 2
Joined: May 17, 2010

Re: Want To Cache Urls In Sitemap only

Postby Jason Caldwell » June 21st, 2010, 11:26 pm

Yep, that should do it. Sorry for my delayed response.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron