Disappearing modules + other minor issue jReviews

17 years 9 months ago #231 by alejo
Thanks a lot. I will try to do this soon. Your support is excellent!

jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 8 months ago #355 by alejo
Finally I was able to get back to this. Your solution works great. I decided to use the menu name as a replacement for the Itemid I was using on the menus and since the menu names need to be unique this works perfect, although now menu names need to be unique from content sections as well, but I don't think that's a problem.

A couple of questions:

1) How can I check if SEF Advance is installed and enabled for jReviews? With OpenSEF you do a check for _OPENSEF, is there a constant defined in SEF Advance that I can check? I need this for my xajax functionality because I have to manually include the SEF file if it is enabled to redirect to a sef url because the xajax bot is run before the sef one.

2) I can't seem to get the new caching to work. The cache files are created but the number of queries remain the same (using the Joomla debug). I assume the cache is checked before running the create function, correct? What could be the problem? I am running this on a local server.

Thanks,

jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 8 months ago #359 by alejo

1) How can I check if SEF Advance is installed and enabled for jReviews? With OpenSEF you do a check for _OPENSEF, is there a constant defined in SEF Advance that I can check? I need this for my xajax functionality because I have to manually include the SEF file if it is enabled to redirect to a sef url because the xajax bot is run before the sef one.


Never mind about this. Your SEF works fine, it's only with open sef that I need to include a sef class file to convert the urls using xajax. Weird.

I still can't get the cache to work though.

jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 8 months ago #365 by Saka

1) How can I check if SEF Advance is installed and enabled for jReviews? With OpenSEF you do a check for _OPENSEF, is there a constant defined in SEF Advance that I can check? I need this for my xajax functionality because I have to manually include the SEF file if it is enabled to redirect to a sef url because the xajax bot is run before the sef one.


Originally sef_ext.php files were made for SEF Advance only because I invented the extension file standard. It was later adopted by other SEF components.
So if there are no defines it should work with SEF Advance. If it doesn't mail the component author.

2) I can't seem to get the new caching to work. The cache files are created but the number of queries remain the same (using the Joomla debug). I assume the cache is checked before running the create function, correct? What could be the problem? I am running this on a local server.


First time it would be the same number of queries until the URLs are cached. If you reload the page you will notice how the number of executed queries decrease.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 8 months ago #367 by alejo

First time it would be the same number of queries until the URLs are cached. If you reload the page you will notice how the number of executed queries decrease.


That's what I did. I am actually looking at the queries performed in the sef_ext.php file, and even after reloading the queries are there and the total number of queries remains the same.


jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 8 months ago - 17 years 8 months ago #374 by Saka
URLs for components are not cached, only the content URLs. And that's for a reason. Imagine a forum component with indefinite variations of URLs for each user, each post etc. You would soon end up with thousands of cache files which would be slow loaded which would defeat the original purpose: to increase the performance.

However, everywhere a content URL is displayed or executed the cached copy of URL will be used instead of calculated one. First activate the debug in main Joomla configurations which will display total executed queries by loaded page.
If you turn off SEF Advance cache and load a page (with content links or menu) and then turn on the cache and reload the same page twice you will notice the difference in number of executed queries.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch