Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Confused about cacheing...
Pages: [1]   Go Down
  Print  
Author Topic: Confused about cacheing...  (Read 1183 times)
0 Members and 1 Guest are viewing this topic.
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« on: February 18, 2011, 16:47:45 »

Hi.

I've read through some  other posts on this...maybe I'm missing something...

I post a comment.   It appears via AJAX...great.  But I refresh the page and its not there until I clear the cache...

I've tried with both page cache and just the global (modular) cache.  JComments defeats neither...

Is JComments meant to override the cache, either by manually calculating the cache file checksum and deleting it or by loading via javascript any comments that haven't been displayed due to the cache??   Whats all the cachebuster JS at the bottom of the comments section?

Thanks for the help...

HKS


Oh and almost forgot that this referring to K2 items which is probably different!
« Last Edit: February 18, 2011, 18:00:02 by harikaram » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: April 19, 2011, 04:53:43 »

The JComments does not cache comments list and all new comments should be available after adding. This is very-very strange...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
harikaram
Newbie
*

Karma: 3
Offline Offline

Posts: 19


« Reply #2 on: April 19, 2011, 14:34:02 »

No but Joomla does.  It'd be good if JComments cleared the cache on the commented page or had an ajax method to update the comments list after load.

Right now if J! whole page cache (plugin) is enabled it effectively makes commenting useless as a thread subscriber will be notified immediately but will come to the website and see nothing new until the J! page cache expires which by default is set to 15 minutes.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: April 19, 2011, 18:36:01 »

No but Joomla does.  It'd be good if JComments cleared the cache on the commented page or had an ajax method to update the comments list after load.
As Joomla has no method to clear cache for certain page the JComments do not include comment's list code into page's source and loads comments list dynamically using JS code (you can look at tpl_index.php and found there anti-cache hack). BTW, many users ask me to include comments text into page source and in upcomming version I've added option to manage this behavior.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Confused about cacheing...
 
Jump to: