Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 19, 2013, 02:35:28 AM

Login with username, password and session length
Search:     Advanced search
15673 Posts in 5191 Topics by 10946 Members
Latest Member: beliaplearo
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla accelerate component
| |-+  Support questions
| | |-+  Cache size 0 Kb
« previous next »
Pages: [1] Print
Author Topic: Cache size 0 Kb  (Read 2088 times)
dukenn
Newbie
*
Posts: 4


View Profile Email
« on: January 17, 2008, 11:56:46 AM »

Hi,

The accelerate component installations was easy and the component looks great also the sites looks to load faster, but...i don't really know. There are currently 870 pages cached but there all 0 Kb.

The URL of the cached pages are:
/index.php?option=com_content&task=view&id=42&Itemid=26
But when browsing on the site it is:
/content/view/42/26/

When i use the debug mode it doens't give me any information on my IP adres when surfing on the website.

Is 0 Kb good? How can i really test if the caching works correctly?

I use version 2.0 and Joomla! 1.0.8 Stable.

Thx in advance,

Jerry
« Last Edit: January 17, 2008, 11:58:37 AM by dukenn » Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #1 on: January 17, 2008, 12:12:31 PM »

No, that is not good.

Can I take a look at your site? Please email me an admin + FTP account: richard-at-joomlatwork.com

(there are some issues with the defender bot and other components which can clear all the parameters, therefor is a workaround available)

I can check this without taking your site down and make the adjustments.

Regards,

Richard
Logged
dukenn
Newbie
*
Posts: 4


View Profile Email
« Reply #2 on: January 17, 2008, 01:31:49 PM »

Hi richard,

Thanks for the fast reply. I'm sorry but we can't send you the admin and FTP account. My collegue is very stricked about this kind of data.

Can't i send you some files, or can help us with a correct the work-around?

Regards,

Jerry

Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #3 on: January 17, 2008, 02:41:44 PM »

Please give me some time (2 days) then I can work around a solution of how you can test it and then how you can deploy it.

You don't have to sent the files. I think I know where the problem exists (have experience this before).

Regards.

Richard
Logged
dukenn
Newbie
*
Posts: 4


View Profile Email
« Reply #4 on: January 17, 2008, 02:56:37 PM »

We will wait untill you find a work-a-round.

Thanks in advance.  Smiley
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #5 on: January 17, 2008, 07:06:34 PM »

I've sent you an email. If made some modifications that I think (hope) this should be working for you.

Please notice that the POST caching will not work since I think that most of the variables are removed when the Joomla session is terminated.

Please let me know if this works.

Regards,

Richard
Logged
dukenn
Newbie
*
Posts: 4


View Profile Email
« Reply #6 on: January 18, 2008, 08:37:21 AM »

Hi Richard,

Thanks for the fast reply. The index.php does work. The files are caching correctly (  9.7 Kb etc )

But there is currently one problem. I also use a SMF forum. When a guest visits my site he is automatic logged in as my account. When i deactivate the compone the problem still exists. So i upped the old index.php and everything is back to normal.

i added in the config:
Cookies to support: SMFCookie449
Disable cache if the following cookies are used: SMFCookie449
Enter URL parts that may not be cached: /component/option,com_smf/
Disable page to be included into the cache if the page content contains: /component/option,com_smf/

There must be something wrong here. I also use a mod_smf_login on the frontpage so users can login here at the frontpage and there also logged in at the forum.  ( I don't use the joomla login )

When i clicked on the logout button at the frontpage ( with your new index.php file ) i was kicked back to the forum but was still logged in. Then i used the logout button on the forum and i get an session error.

I hope you can help me out here. Thanks in advance.  Smiley
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #7 on: January 18, 2008, 08:53:11 AM »

Check the login form fields. When a post is made (the login post) fields can be set to bypass the cache. This is the case when some logs into your website (then the cache should not be available.

Check the HTML code of the login functionality. (usually a <form. >
Check the fields settings.
Set the these values into the field:
Quote
Set the bypass cache cookie if the following actions are set:

Example is that the standard Joomla login has the setting:
Quote
<form action="index.php?option=login" method="post" name="login" id="login">

Then in the put into the bypass field setting:
option=login

Or if the value is within a (hidden) field:
Quote
<input type="hidden" name="op2" value="login" />

put into the bypass field setting:
op2=login

The same is for clearing the bypass cache cookie. When someone logs out a specific action is made, mostly this is:
option=logout
op2=logout

But check the HTML code of the SMF login box.

Regards,

Richard
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!