PEAK XOOPS - Fastest Cache Hack in englishin japanese

Fastest Cache Hack

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/1 7:58
cebepuh  °ìÅùʼ   Posts: 14
Some issues I've noticed...

Here on this site while I was reading a news item I logged in using the box on the left. The page reloaded and the login box was still there, no error messages, nothing. Clicked on Forums and I obviously was logged in and the message in the left block appeared: 'Thank you for logging in, cebepuh.'

Had a similar experience on my site. I log in but the greeting was for another user. The next page I visisted from my site showed the greeting with my username correctly.

Both on this site and on my site, the redirect_header hack is used. Could this be causing the problem?

A user has complained that upon visiting his Inbox, the messages in it were to another user. In fact this was not his Inbox at all.

One more question: as far as I understand the cache generated by this hack is personalized. Should the default Xoops cache mechanism be used too while running this one?

Tested on Xoops 2.2.3
Votes:7 Average:8.57
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/3 6:45
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi cebepuh.

Thank you for reporting.

Quote:
Here on this site while I was reading a news item I logged in using the box on the left. The page reloaded and the login box was still there, no error messages, nothing. Clicked on Forums and I obviously was logged in and the message in the left block appeared: 'Thank you for logging in, cebepuh.'

Had a similar experience on my site. I log in but the greeting was for another user. The next page I visisted from my site showed the greeting with my username correctly.
This is obviously a bug.
I've just fixed it in FCH 0.20h


Quote:
A user has complained that upon visiting his Inbox, the messages in it were to another user. In fact this was not his Inbox at all.
hmmm.
It looks accidental session-hijack.
Though there are some reasons it occurs, I've modified FCH not to display session_id() any more.

Try it.

Quote:
One more question: as far as I understand the cache generated by this hack is personalized. Should the default Xoops cache mechanism be used too while running this one?
Principally, default "module cache" should be turned off with almost all modules.

You can enable cache of some kind of blocks (eg. forum, news, headline).

Enabling Both FCH and block cache can make your site light.
Votes:1 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/9 17:20
loaded  ÆóÅùʼ   Posts: 2
the folders in the install-readme under point 2+3 is this in my-xoops or in the htdocs of my webspace ?
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/10 6:16
GIJOE  ÀèǤ·³Áâ   Posts: 4110
it means "outside htdocs".
It's definitely important.
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/10 7:26
loaded  ÆóÅùʼ   Posts: 2
/ " this is my firts ( connect with ftp) must i make here the folders ?"

/html/ second

/html/xoops/ third
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/1/11 6:09
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:
loaded wrote:
/ " this is my firts ( connect with ftp) must i make here the folders ?"

/html/ second

/html/xoops/ third

Perhaps, /html is your DocumentRoot.
And your ftp server supports chroot.

Thus, make /trust just under root by FTP access.

Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/1 12:11
cebepuh  °ìÅùʼ   Posts: 14
Noticed this in my error logs:

[error] PHP Warning:  Wrong parameter count for (null)() in /include/fastestcache.php on line 54


Using FCH 2006/1/28
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/4 6:11
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It sounds odd.
Is the line like this?

	readfile( $fastestcache_path ) ;

Have you set XOOPS_TRUST_PATH into mainfile.php ?
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/4 15:17
cebepuh  °ìÅùʼ   Posts: 14
Yep, line 54 is:

	readfile( $fastestcache_path ) ;

XOOPS_TRUST_PATH is set into mainfile.php.

XOOPS_TRUST_PATH is out of the DocumentRoot. Fullcache is chmodded to 777, and I see FCH creates and deletes files from it.

I haven't seen that error in my error logs during the past 24 hours but it seems it shows every once in 2-3 days. I've seen it with the previous version of FCH too.


Quote:
Here on this site while I was reading a news item I logged in using the box on the left. The page reloaded and the login box was still there, no error messages, nothing.

Have you applied the latest version here? It happened once again while i was reading this thread and tried to login. Using FF 1.5.0.1
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/5 6:49
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It sounds enviroment problem.
Which PHP version do you use?

Quote:
Have you applied the latest version here? It happened once again while i was reading this thread and tried to login. Using FF 1.5.0.1
It's good news.
I can check it.

Of course, the latest version of FCH is applied in this site.
This is a "Laboratory"
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/5 7:00
cebepuh  °ìÅùʼ   Posts: 14
PHP Version 4.4.1
MySQL 4.0.25
Apache 1.3.34

Quote:
Quote:
Have you applied the latest version here? It happened once again while i was reading this thread and tried to login. Using FF 1.5.0.1
It's good news.
I can check it.

This is just to evade some confusion I have the feeling I may have started. I was referring that I still have the the login problem on this site - when I logged in while reading the thread, the page refreshed and the login box was still on the left.
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/6 5:38
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Perhaps you make misunderstanding about FCH radically.
This is under experimental status.

If you don't want "confuse", I have to say "stop using right now"

Of course, I'm appreciated bug reports from users.

Quote:
I was referring that I still have the the login problem on this site - when I logged in while reading the thread, the page refreshed and the login box was still on the left.
I've just tested it, but I can't replay errata you've mentioned.

browser dependencies ?
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 .2 | Posted on 2006/2/17 4:43
cebepuh  °ìÅùʼ   Posts: 14
Quote:
Perhaps you make misunderstanding about FCH radically.
This is under experimental status.

Yeah, I know.

Quote:
I've just tested it, but I can't replay errata you've mentioned.

browser dependencies ?

Hmm... It seems the problem is with Firefox on that particular PC. I've tried it with the same version/settings of Firefox on other systems and I was not able to replay the problem. I guess we should leave it at that. Anyway, a bit more info in case somebody else shows up with the same observations:

Firefox/1.5.0.1 on WinXP SP2, Internet Connection Firewall disabled. I visit the homepage of this site, then follow a link to a topic like this:
http://www.peak.ne.jp/xoops/md/xhnewbb/viewtopic.php?topic_id=1250&post_id=4614#forumpost4614

When I try to login with the problematic system I get redirected to:

http://www.peak.ne.jp/xoops/md/xhnewbb/viewtopic.php?topic_id=1250&post_id=4614

and I'm not logged in. After browsing a bit I see the 'Thank you forr logging in' message and I'm logged in. Notice that to the the above url I don't receive a PHPSESSID appended. It happens with only that particular system. On all others I've tested, I do receive a PHPSESSID appended to the url.
Votes:8 Average:8.75

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/2/17 17:45
cebepuh  °ìÅùʼ   Posts: 14
Ok. I've managed to reproduce it on another system both with IE and FF. But I'm not sure that the login problem at this site has anything to do with FCH.

Here is what I do:

1. Cleared all cookies and restarted FF.
2. Visit the homepage of this site: http://peak.ne.jp/xoops/
The funny thing is I don't receive any cookies from this site. Using the WebDeveloper FF extension to view cookie info.

Quote:
3. Visit a thread from this forum.

Quote:
4. Login while I'm reading the thread. Login is sucessful.

Quote:
Cookie Information - http://www.peak.ne.jp/xoops/md/xhnewbb/viewtopic.php?topic_id=1208&post_id=4628&PHPSESSID...
http://www.peak.ne.jp/xoops/md/xhnewbb/viewtopic.php?topic_id=1208&post_id=4628&PHPSESSID...
Name PHPSESSID
Value I won't be posting the value. Let's just call it PHPSESSIDVALUE. It is the same value I get appended to the url.
Host www.peak.ne.jp
Path /
Secure No
Expires At End Of Session

Name usersession
Value PHPSESSID
Host www.peak.ne.jp
Path /xoops
Secure No
Expires At End Of Session

5. Click on the logout and I'm redirected back to the front page. Visit the same thread again (although I'm sure any other thread will do the same trick).

Quote:
6. Try to login. The page reloads but I do not appear to be logged in.

Quote:
7. Navigate first to Downloads, and then to Top Rated Downloads and I get the welcome message and I'm logged in.

Quote:
Cookie Information - http://www.peak.ne.jp/xoops/md/mydownloads/topten.php?rate=1
http://www.peak.ne.jp/xoops/md/mydownloads/topten.php?rate=1
Name PHPSESSID
Value PHPSESSIDVALUE
Host www.peak.ne.jp
Path /
Secure No
Expires At End Of Session

Name usersession
Value PHPSESSID
Host www.peak.ne.jp
Path /xoops
Secure No
Expires At End Of Session



PHPSESSIDVALUE naturally has the same value throughout all this mumbo-jumbo I'm doing.
Votes:7 Average:7.14

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.2
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/19 6:58
GIJOE  ÀèǤ·³Áâ   Posts: 4110
I've just understand the trouble of the login'in.
Wait just a moment.
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.2.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/2/20 6:34
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.2.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/9 19:10
mesol  ÆóÅùʼ   Posts: 10
i don't understand step 2.

my xoops root is www.erzwan.com/portal/

so, i have to create directory www.erzwan.com/portal/xoops/fullcache/

is it true?

i'm beginner. plz help me.
Votes:1 Average:0.00

question Re: Fastest Cache Hack

msg# 1.1.1.1.1.1.1.1.1.1.1.1.1.2.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/7/10 7:20
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:
mesol wrote:
i don't understand step 2.

my xoops root is www.erzwan.com/portal/

so, i have to create directory www.erzwan.com/portal/xoops/fullcache/

is it true?
No.
They are virtual paths for httpd.
You should know physical path.

Votes:3 Average:3.33

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!