Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials (jReviews 2.0)
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
CSV Import for Joomla and jReviews
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 12:58:08 AM
21662 Posts in 4948 Topics by 2838 Members
Latest Member: davidkan
News: Use your client area email when you sign up to the forum so we can identify you as a trial or licensed user. Otherwise we may not answer your questions.
 
jReviews Support Forum  |  jReviews 2.x  |  General discussion  |  Best Caching component for jReviews « previous next »
Pages: [1]
Author Topic: Best Caching component for jReviews  (Read 349 times)
eskwire
Sr. Member
****
Offline Offline

Posts: 180



WWW
« on: October 09, 2008, 01:26:08 AM »

Not sure if this has been asked before.

I have been thinking about adding a caching component to speed up a few of my sites.  I am looking at:


Has any one used either of these with jReviews?  How well did they work?

Are caching components worth the effort?

I have both Joomla 1.0 and 1.5 site, running both jreviews 1.2 and 2.0. 

Thanks!



Logged

Let Intown Web design help you with   jReviews Support
Best Headphone Reviews
moseleysc
Full Member
***
Offline Offline

Posts: 50


« Reply #1 on: October 12, 2008, 06:21:20 PM »

I'd love to hear thoughts on this too.

I've used Joomlatworks Cache Component and I would have concerns of it messing something up in jReviews - it makes your site much more of a static site so it seems that it gives problems for more dynamic operations.  People seem to make it work but you have to fiddle with it more telling it to recache after certain commands.

Anyone used this with JReviews?

Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #2 on: October 12, 2008, 11:49:32 PM »

I haven't used any, but I can tell you a couple of potential problems you could run into with a cache component:

1) JS/CSS: jReviews sends these to the template header via Joomla's functions. The cache component needs to also cache this info and send it to the header itself or the page will not be rendered correctly or some of the js functionality might not work.

2) Guests: If the component caches pages for guests and you have enabled listing/review submissions for guests, then the cache won't be cleared when a user submits a review and non of the elements related to this review will be updated until the cache expires. If there's no caching for registered users, then this wouldn't be a problem.

Not sure about the rest of the site, but the built-in cache in jReviews 2.0's latest build actually works and it's twofold: database queries for all types of users, whole pages for visitors. You can enable debug in the Joomla global settings and see how the number of queries goes down with the cache enabled.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
eskwire
Sr. Member
****
Offline Offline

Posts: 180



WWW
« Reply #3 on: October 15, 2008, 04:47:20 PM »

Thanks for the reply!  Some great information.  I will try out the cache in jReviews 2.0.

I still have many 1.2 sites and have been trying out the Joomla Accelerate component.  It works very well.   It caches pages for guests but not for users logged in. 

On one of my sites a guest can add a review but it does not show up because the page is cached. Joomla Accelerate has the ability to create a new version of page after ceartain triggering events, such as a review submission. 

This caching component removes the referrer cache file if specified actions are performed for the public frontend:

For example to remove the page from which a comment is made with jcomment this field should contain:

option=jomcomment|task=azrul_ajax

What would be an action that is preformed by jReviews when a user adds a new review?  If I can find this out then I can set the cache component to recreate the review page with the new review added to it.

Thanks so much!  Let me know if I can provide any additional information.
« Last Edit: October 15, 2008, 04:50:40 PM by eskwire » Logged

Let Intown Web design help you with   jReviews Support
Best Headphone Reviews
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #4 on: October 15, 2008, 05:05:48 PM »

Use Firebug's console  to see the http requests made by jReviews when you click on the submit button.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
eskwire
Sr. Member
****
Offline Offline

Posts: 180



WWW
« Reply #5 on: October 20, 2008, 05:06:56 PM »

Thanks for the reply.

Richard, the Joomlatwork developer, found the unique code (in jReviews 2.0) that can be added to his caching component. It is:

xjxfun=xajaxDispatch

When this code is added to the automatic cache maintenance section of joomla accelerator, the review detail page is deleted and recreated after a user adds a new review.  This way you can have the cache turned on for the entire site and the new user reviews display when a guest adds one.

Does this code make sense?

This does not seem to work in jReviews 1.2  any ideas on what the code for jReviews 1.2 would be?


Thanks so much!
Logged

Let Intown Web design help you with   jReviews Support
Best Headphone Reviews
moseleysc
Full Member
***
Offline Offline

Posts: 50


« Reply #6 on: October 20, 2008, 06:32:59 PM »

Hi eskwire - other than your jReviews 1.2 problem, are you getting it to work in jReviews 2.0?

I'm very interested in possibly using this component - any help would be greatly appreciated.....thanks (I have a beast of a site that I'm working on, and this would make it much easier to maintain then what I'm doing now).

Thanks.

Steve
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*****
Offline Offline

Posts: 8593


« Reply #7 on: October 20, 2008, 08:17:13 PM »

all the xajax functions used in 1.x are listed in the xajax.jreviews.php file. In 2.x I unified all of them into a single xajaxDispatcher function.
Logged

Please take the time to vote and to write a review: http://extensions.joomla.org
Reviews Ahoy! - Submit your jReviews site here.
eskwire
Sr. Member
****
Offline Offline

Posts: 180



WWW
« Reply #8 on: October 21, 2008, 01:38:38 PM »

Everything seems to be working very well.  Joomla Accelerate has really made the entire site go faster.

There are several advanced features that I have not experimented with, such as css and javascript file combining.  Not sure if these will break anything or not.

Also I have my user reviews set to no moderation, which is why the code added causes the component to recache the page.  If you have a different jReviews set up you may need to add a different code.

This the first time I have ever really worked with any sort of Joomla Caching, wish I had done it a lot sooner.  I am sure as time goes on I will learn more about best caching practices.

Any way I am very impressed so far, if you buy the component be sure to thank Richard for looking into the jReviews exceptions.

Hope this helps!
Logged

Let Intown Web design help you with   jReviews Support
Best Headphone Reviews
Pages: [1]
« previous next »
    Jump to: