You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 52 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How do you know if cache and gzip is working? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
markph
Nuke Soldier
Nuke Soldier


Joined: Mar 16, 2004
Posts: 19


PostPosted: Mon May 03, 2004 10:20 am Reply with quoteBack to top

Hi, I intalled the jpcache and adjusted the code as explained by Chris in http://www.karakas-online.de/forum/viewtopic.php?t=130&postdays=0&postorder=asc&start=0 I made a test at http://www.desilva.biz/gzip-test.php and it says that "The webpage is COMPRESSED / GZIPPED! >> Savings: 77%" and can also registers that there is a cache = jpcache vv2 - file

But I am in doubt if it is working correctly, the reason for my doubt is:
1) There are no files build in the temp/jpcache, shouldnt cache files be build here?
2) The read me file that comes with jpcache says that one can test by using:
<?php
require "jpcache.php";
echo time();
phpinfo();
?>
So I make a test-1.php file uploaded to the includes/jpcache folder and bring it up in the browser and it shows me "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/virtual/user/www.domain.com/includes/jpcache/test-1.php:1)in /usr/home/user/www.domain.com/includes/jpcache/jpcache-main.php on line 170 1083606424 " and below php version, server info, etc, I expected it would show me the time so I can check if the page is cached but it does not. But it shows me an error and server info.

What should I make out of this, is it working or not and how do I know for shure?
Find all posts by markphView user's profileSend private message
eyefrequency
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2004
Posts: 22


PostPosted: Fri Aug 13, 2004 2:42 am Reply with quoteBack to top

STEP ONE: I think you have multiple problems all acting on one another. First you probably need to take care of the headers problem. To do so, create/modify the .htaccess in your root directory to include the following code:

Code:
PHP_FLAG output_buffering on


Then open your mainfile.php in your nuke directory and make the following alterations. (mind you, the following code might be a little different, depending on your version of php-nuke, but it should be near the top, so try to match it correctly):

Code:
42 = phpversion();
if (42 >= '4.0.4pl1' && strstr(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),'compatible')) {
    if (extension_loaded('zlib')) {
        ob_end_clean();
        ob_start('ob_gzhandler');
    }
} else if (42 > '4.0') {


and change it to:
Code:

42 = phpversion();
if (42 >= '4.0.4pl1')
{
    ob_start('ob_gzhandler');
}else if (42 > '4.0') {


STEP TWO:
Did your correctly set the permissions of the temp directory along with the jpcache folder inside of it? They need to be set to 777 to allow files to be written to them.

STEP THREE: If your stilling having issues with the cache file being written, then that means you have incorrectly set a value in the installation process. That could mean you didn't set the full path for a directory or file, or you didn't uncomment the option to write to file. Please carefully review the installation directions again if problem persists. Here's a link to straight-forward explanation on how to correctly install and set jpcache: http://www.karakas-online.de/forum/viewtopic.php?t=130

Hope this helps! Very Happy
Find all posts by eyefrequencyView user's profileSend private message
eyefrequency
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2004
Posts: 22


PostPosted: Fri Aug 13, 2004 2:51 am Reply with quoteBack to top

Oh yes, I almost forgot. To clarify your question, yes, to truly know if jpcache and gzip are working, a cache file must be written to the jpcache folder in your temp directory. That test php file you tried should have also tipped you off that jpcache wasn't working correctly probably when the numbers at the top left corner kept changing, instead of correctly displaying the same number after refreshes. Once again, if modifying your .htaccess and mainfile.php along with setting your permissions correctly, that means you messed up somewhere along way of configuring jpcache. Remember, you must choose between having jpcache or gzip_mod in Apache doing your compression. That aspect is explained more thoroughly in the link I posted. Good Luck!
Find all posts by eyefrequencyView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.200 Seconds - 310 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::