Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-11T14:16:58-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=663 2011-03-11T14:16:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=7725#p7725 <![CDATA[Re: Quick Cache + Multi-network?]]>
add this in yout theme functions:

Code:
add_filter("comment_post_redirect", "ws_plugin__qcache_clear_on_post_page_comment", 10, 2);
function ws_plugin__qcache_clear_on_post_page_comment($location, $comment) {
   ws_plugin__qcache_clear_on_post_page_creations_deletions($comment->comment_post_ID);
   return $location;
}



then go to:

wp-content/plugins/quick-cache/includes/functions/clearing-routines.inc.php

and in line 32

replace with this:
Code:
if (in_array ($pagenow, ($pages = array ("edit.php", "post.php", "post-new.php", "wp-comments-post.php"))))



and you are done. again to me only works in WP 3.0.4 + QC 2.2.7

Statistics: Posted by catalyst — March 11th, 2011, 2:16 pm


]]>
2011-03-10T15:36:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=7688#p7688 <![CDATA[Re: Quick Cache + Multi-network?]]> Statistics: Posted by catalyst — March 10th, 2011, 3:36 pm


]]>
2011-03-08T10:24:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=7509#p7509 <![CDATA[Re: Quick Cache + Multi-network?]]> Statistics: Posted by catalyst — March 8th, 2011, 10:24 am


]]>
2011-03-07T14:32:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=7486#p7486 <![CDATA[Re: Quick Cache + Multi-network?]]> Statistics: Posted by catalyst — March 7th, 2011, 2:32 pm


]]>
2010-09-27T15:37:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=3554#p3554 <![CDATA[Re: Quick Cache + Multi-network?]]> Thanks for the great question.

Also, if QC doesn't use the root .htaccess to redirect requests, how does it work? Does it request something from the database for each request?

No, there are absolutely ZERO database requests required. By default, Quick Cache stores cache files based on the $_SERVER["REQUEST_URI"]. It can retrieve a cached version with only that information. If you're seeing a HUGE spike in database activity during peak times, that would indicate to me that there are several parts of your site that are not being cached for one reason or another.

- Visitors are logged in?
- Perhaps you have other plugins that are not cache-compatible?
- Your site uses query string arguments instead of friendly/SEO permalinks?
- Your cache expiration time is too low? Increase to 12 hours.

Statistics: Posted by Jason Caldwell — September 27th, 2010, 3:37 pm


]]>
2010-09-27T15:30:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=3553#p3553 <![CDATA[Re: Quick Cache + Multi-network?]]>

Is the cache re-generated per post when a comment is made, or would new comments always take "Expiration Time" to show up for regular visitors?

New comments do NOT cause a cache refresh. The only factor that is considered is your Cache Expiration Time, which is 1 hour by default. That being said, if a visitor is commenting on your site, they will see updates to the spool of comments in real-time, because Quick Cache does not serve cached pages to logged-in visitors, and a recent commenter is considered a logged-in visitor.

Statistics: Posted by Jason Caldwell — September 27th, 2010, 3:30 pm


]]>
2010-09-08T06:39:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=3055#p3055 <![CDATA[Re: Quick Cache + Multi-network?]]>
Thanks,

Statistics: Posted by LucPestille — September 8th, 2010, 6:39 am


]]>
2010-09-08T03:07:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=3051#p3051 <![CDATA[Re: Quick Cache + Multi-network?]]>
Jason Caldwell wrote:
If your site rarely changes, then I would suggest increasing your Cache Expiration Time. I've seen site owners run this as high as 1 year ( 31556926 seconds ). In other words, the ONLY reason Quick Cache would re-generate Pages, is if your Expiration Setting requires it to do so, or you've configured Quick Cache with Dynamic Cache Pruning upon changes to your content within WordPress®.

If your Expiration Time is left at the default setting ( 3600 seconds = 1 hour ), then it will refresh the cache each hour ( on a per-Post basis ), looking for possible changes in your content. If you know that your content rarely changes ( i.e. you rarely edit posts, and you have no comments being left behind ), then you can safely increase your Expiration Time to dramatically decrease the amount of CPU time and bandwidth your server consumes.

Is the cache re-generated per post when a comment is made, or would new comments always take "Expiration Time" to show up for regular visitors? Your comment suggests that a new comment doesn't count as a change? I might be an edge case, but I'd rather post content get updated rarely (say, every day) but comment changes update the post every hour...

Thanks though - without QC, my sites wouldn't be up at all!

Statistics: Posted by LucPestille — September 8th, 2010, 3:07 am


]]>
2010-09-08T00:54:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=3047#p3047 <![CDATA[Re: Quick Cache + Multi-network?]]>

It does work OK - I've seen some weird CPU spikes, I think related to the cached files being re-generated, but other than that (and gzip not being enabled by default), it seems to work OK.

^ Thank you VERY much for reporting back on this topic.


On that first note, why are cached pages re-generated every X seconds? If my homepage/posts don't change for hours or days on end, why should they be automatically re-generated and take up CPU time?

If your site rarely changes, then I would suggest increasing your Cache Expiration Time. I've seen site owners run this as high as 1 year ( 31556926 seconds ). In other words, the ONLY reason Quick Cache would re-generate Pages, is if your Expiration Setting requires it to do so, or you've configured Quick Cache with Dynamic Cache Pruning upon changes to your content within WordPress®.

If your Expiration Time is left at the default setting ( 3600 seconds = 1 hour ), then it will refresh the cache each hour ( on a per-Post basis ), looking for possible changes in your content. If you know that your content rarely changes ( i.e. you rarely edit posts, and you have no comments being left behind ), then you can safely increase your Expiration Time to dramatically decrease the amount of CPU time and bandwidth your server consumes.

Statistics: Posted by Jason Caldwell — September 8th, 2010, 12:54 am


]]>
2010-09-07T16:30:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=2992#p2992 <![CDATA[Re: Quick Cache + Multi-network?]]>
Jason Caldwell wrote:
Thanks for the great questions.
Yes, Quick Cache IS compatible with Multisite Networking. While I've not tested with that particular plugin, I don't foresee any issues running Quick Cache with domain mapping.

It does work OK - I've seen some weird CPU spikes, I think related to the cached files being re-generated, but other than that (and gzip not being enabled by default), it seems to work OK.

On that first note, why are cached pages re-generated every X seconds? If my homepage/posts don't change for hours or days on end, why should they be automatically re-generated and take up CPU time?

Thanks,

Statistics: Posted by LucPestille — September 7th, 2010, 4:30 pm


]]>
2010-09-07T16:00:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=2985#p2985 <![CDATA[Re: Quick Cache + Multi-network?]]> Thanks for the great questions.
Yes, Quick Cache IS compatible with Multisite Networking. While I've not tested with that particular plugin, I don't foresee any issues running Quick Cache with domain mapping.


Also, since the plugin options are only set on the primary site, does this mean that I can't use the sitemap option (as each site will need it's own sitemap defined).

Correct. I would suggest creating a special Sitemap specifically for Quick Cache,
which would include ALL sites in your Network.

Actually, my first recommendation is NOT to use the Auto-Cache Engine at all. That feature was added by request. As a developer though, I do NOT recommend it. The gains received by that particular feature are negligible. Unless you have a special reason to use that feature, I suggest leaving it off.
Quick Cache will run fine & dandy without it.

Statistics: Posted by Jason Caldwell — September 7th, 2010, 4:00 pm


]]>
2010-09-03T03:47:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=663&p=2892#p2892 <![CDATA[Quick Cache + Multi-network?]]> I'm using WP3 with @andrea_r's Networks+ plugin, to enable domain-mapping for my network of sites. I'm currently using W3 Total Cache, but it isn't completely compatible (it serves 1 site's content for any domain/network) - does QC have any issues with running multi-network sites, specifically with domain-mapping?

Also, since the plugin options are only set on the primary site, does this mean that I can't use the sitemap option (as each site will need it's own sitemap defined).

Thanks,

Statistics: Posted by LucPestille — September 3rd, 2010, 3:47 am


]]>