Topic-icon jfbconnect cache problems

Active Subscriptions:

None
14 years 7 months ago #15080 by guygoo
I've just completed a development site which worked OK together with jfbconnect 4.0.3. It's gone live and turning on and tweaking the cache's simply through Jfbconnect way off course. It wouldn't logon and off properly, it even gave a facebook error but the domain is correct.
Turning all the cache's off and altering the plug-in positions didn't help either. It was simpler to reinstall a backup and now it's working OK again :)
However, I'm not able to turn any cache's on at all which is of course disappointing as far as site optimization is concerned. I have read through the forum and as far as I can tell I've taken the advice about not turning the system cache on. I've also checked the order and that seems OK. I've not got a load of third party extensions loaded either.
There's got to be some tips and tricks. What files to avoid compressing....

Cheers for any help.


"Error
An error occurred. Please try later
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not permitted by the application configuration.
"
The topic has been locked.
Support Specialist
14 years 7 months ago #15086 by alzander
Replied by alzander on topic jfbconnect cache problems
We use the system cache on this, and many other sites, so it shouldn't really be a problem. We are using Joomla 1.5 here, and not Joomla 1.7, so it's possible there's other issues with that, but not sure.

The invalid redirect_uri is basically saying that the callback URL we're specifying in the Login button isn't pointing to a page within your application's domain. That's odd that the caching would affect that, but anything's possible. If you can give me a URL where we can see things going 'crazy', that would really help us.

As for suggestions:
1) Try just one caching (either Global Config or System Caching plugin) at a time. See if one causes more problems than the other, or if one works and the other doesn't. That will help us debug things.
2) For the Global Config caching, try the "Conservative" mode (I think that's what it's called) first. That's more like Joomla 1.5's caching. We should (and have tested) with both modes though.
3) For the System Plugin, make sure it executes after (higher number) than the JFBCSystem plugin. It must be a higher number, not just visually after (with the same ordering number).

Again, if we can see things whacky in action, we should be able to diagnose things a lot better.

Thanks,
Alex
The topic has been locked.
Support Specialist
14 years 7 months ago #15087 by alzander
Replied by alzander on topic jfbconnect cache problems
Oh yeah, are you using any 3rd party 'optimizers' for compressing files or doing other types of minification?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #15098 by guygoo
Replied by guygoo on topic jfbconnect cache problems

alzander wrote: We use the system cache on this, and many other sites, so it shouldn't really be a problem. We are using Joomla 1.5 here, and not Joomla 1.7, so it's possible there's other issues with that, but not sure.

The invalid redirect_uri is basically saying that the callback URL we're specifying in the Login button isn't pointing to a page within your application's domain. That's odd that the caching would affect that, but anything's possible. If you can give me a URL where we can see things going 'crazy', that would really help us.
axus.com
As for suggestions:
1) Try just one caching (either Global Config or System Caching plugin) at a time. See if one causes more problems than the other, or if one works and the other doesn't. That will help us debug things.
OK, from the backup I started afresh.
2) For the Global Config caching, try the "Conservative" mode (I think that's what it's called) first. That's more like Joomla 1.5's caching. We should (and have tested) with both modes though.
Started with Conservative mode and everything OK after an hour
3) For the System Plugin, make sure it executes after (higher number) than the JFBCSystem plugin. It must be a higher number, not just visually after (with the same ordering number).

Double checked the order and turned the System plug-in as well. Still OK :)

Again, if we can see things whacky in action, we should be able to diagnose things a lot better.

I'll continue testing to the next level in your following message, which is minimizing where I guess the problem is going to be.
I'll do this task Friday and post the result. Thanks for your help.


Thanks,
Alex

The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #15099 by guygoo
Replied by guygoo on topic jfbconnect cache problems
Yes I am. They are not turned on right now and I'll be testing this first thing Friday morning. What should I avoid minimizing?

Many thanks,
The topic has been locked.
Support Specialist
14 years 7 months ago #15111 by alzander
Replied by alzander on topic jfbconnect cache problems
It's just another variable. Mainly, if you can prevent the "Combining of Javascript" as well as "Deferring Javascript", those are the two things that can cause conflicts depending on what other Javascript you have running on your site.

We use JCH_Optimize on this site (currently disabled for a different/non-JFBConnect conflict). So minimizing, caching and other optimizations do work, but since Facebook and JFBC are heavily Javascript dependent, messing with those things can cause problems. Like you mentioned, right now, we just need to narrow down that conflict by slowly enabling features. Once narrowed, it will be easier to find a real solution.

Thanks for your patience,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #15127 by guygoo
Replied by guygoo on topic jfbconnect cache problems
I've spent a large amount of time tweaking the cache settings and minifying . There are so many cache's and a lot of combinations.
The biggest hurdle to get over is, you might think everything is working OK only to discover later that it's broken in a place you have checked before or haven't looked at for a while... It really is a time consuming task.

For example in my case I found configuring the Global configuration cache to "progressive" gave a code warning pop-up in Firefox - See attachment.
Switching to "Conservative" made it go away :)

There are more and similar examples which may or may not be related to fjbconnect extensions. It's a trade off between speed, efficiency and functionality.

I'm keeping my fingers crossed that I've finally achieved the right balance...

PS. I've not touched minifying/compressing any JS files as this could lead to trouble that was pointed out by Alex earlier in this thread.
The topic has been locked.
Support Specialist
14 years 7 months ago #15131 by alzander
Replied by alzander on topic jfbconnect cache problems
We definitely hear you with the tediousness of it all. Caching does have good benefits, but there's definitely a reason it's disabled in Joomla by default.

If you ever get to a place where it works, or seems really close to working, let us know and we can help diagnose any remaining issues to try to figure out what to tweak further. Unfortunately, every site with each combination of extensions is different, so there isn't a magic bullet to this.

Thanks,
Alex
The topic has been locked.