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: Comments caching and Javascript
Pages: [1]   Go Down
  Print  
Author Topic: Comments caching and Javascript  (Read 1862 times)
0 Members and 1 Guest are viewing this topic.
Valandis
Newbie
*

Karma: 0
Offline Offline

Gender: Male
Posts: 8



WWW
« on: December 18, 2009, 04:00:52 »

Hi there! First of all thanks for the great component!

I got a little problem (which is actually not so important for other people), which has to with the caching of the components and the trick used to put them on the screen with Javascript. Since for me it's very important to have a website with rich content I prefer the comments to appear in the HTML code like normal content, so that it will be indexed by the search engines.

I read the trick at another topic here: http://www.joomlatune.com/forum/index.php/topic,722.0.html which didn't work 100% for me; my site is in 3 languages so I went to phpmyadmin and inserted 3 values for each language in order to enable comments to be displayed in the HTML, so I inserted:
  • lang:en-GB name:load_cached_comments value:1
  • lang:el-GR name:load_cached_comments value:1
  • lang:de-DE name:load_cached_comments value:1
After doing this I double checked the pages of my site and saw that only the comments in the Greek language are displayed in the source HTML code, in English and German part of my site the comments are still displayed with Javascript. One last thing, the default language for my site is Greek, so I dont know if this has somthing to do with that.

I'd appreciate your help!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: December 18, 2009, 05:23:59 »

May be you need clean all content cache after inserting these variables? Once... I think you get cached pages generated before you've made these changes.
Logged

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

Karma: 0
Offline Offline

Gender: Male
Posts: 8



WWW
« Reply #2 on: December 18, 2009, 19:47:35 »

Problem fixed! Thanks for your help smart and needless to say you got a thumbs-up review at the Extensions dir. Wink

The solution was:
1. disable cache generation (from Joomla config)
2. clean the cache
3. enter the above variables in the database
4. enable cache generation back
5. prima it works just fine, in all languages!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: December 18, 2009, 21:01:07 »

needless to say you got a thumbs-up review at the Extensions dir. Wink
thank you!
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: Comments caching and Javascript
 
Jump to: