Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Mesum
Useless



Joined: Aug 23, 2002
Posts: 213
Location: Chicago

PostPosted: Mon Nov 01, 2004 12:15 am Reply with quote

I think I have applied almost every hack I could understand to my forums yet it's as slow as it could be.
Can we use CacheLite in forums too for guests or something?

Stats are not big but they do get big at times.

9000+ users.
180K+ posts.
GZiped.
Dedicated server. 2.4GH, 512MB RAM.

General server information:
(Coppied from CPanel)
Operating system Linux
Kernel version 2.4.21-9.0.1.EL
Apache version 1.3.31 (Unix)
PERL version 5.8.1
PHP version 4.3.8
MySQL version 4.0.22-standard

Any thoughts?
 
View user's profile Send private message Visit poster's website
Mesum







PostPosted: Mon Nov 01, 2004 12:19 am Reply with quote

I don't know if this helps, avrg daily views are 8426 pages.
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Nov 01, 2004 6:30 am Reply with quote

I use jpcache to serve the cached pages to guests. Cache-Lite can do the same I am sure. But how to do is just install it to the main index.php seems to work great.

if(!eregi("admin.php",$_SERVER['PHP_SELF']) AND !is_admin($admin)) {
if (!isset($user)) {
$cachetimeout=900;
} else {
$cachetimeout=-1;
}
require_once("includes/jpcache/jpcache.php");
}

strpos would maybe be faster then eregi dunno why I went with that. Might be a more elegant solution but this will cache those pages.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sharlein
Member Emeritus



Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Mon Nov 01, 2004 4:36 pm Reply with quote

I am trying to add cache lite to my system but I keep gettin errors
Code:
Warning: main(): open_basedir restriction in effect. File(/Cache/Lite.php) is not within the allowed path(s): (/home/xxxx/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxxxxx/public_html/Cache_Lite-1.3.1/tests/test.php on line 6


Warning: main(/Cache/Lite.php): failed to open stream: Operation not permitted in /home/xxxxx/public_html/Cache_Lite-1.3.1/tests/test.php on line 6

Fatal error: main(): Failed opening required '/Cache/Lite.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/Cache_Lite-1.3.1/tests/test.php on line 6

Does anyone kno wwhat would cause this?

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 01, 2004 4:55 pm Reply with quote

Try putting Cache_Lite folder in your includes folder: includes/Cache_Lite
 
View user's profile Send private message
Mesum







PostPosted: Mon Nov 01, 2004 5:21 pm Reply with quote

Raven, you think we can use CacheLite in forums?
 
Raven







PostPosted: Mon Nov 01, 2004 5:25 pm Reply with quote

Yes, you "technically" can use it anywhere, but I have only concentrated on making it work in the blocks.
 
Mesum







PostPosted: Fri Nov 05, 2004 9:51 pm Reply with quote

Raven, you think you can give me some info on server configurations? As I just got a vanilla install of Linux from ServerMatrix with CPanel/WHM.
 
oprime2001
Worker
Worker



Joined: Jun 04, 2004
Posts: 119
Location: Chicago IL USA

PostPosted: Mon Nov 08, 2004 1:14 pm Reply with quote

sixonetonoffun wrote:
I use jpcache to serve the cached pages to guests. Cache-Lite can do the same I am sure. But how to do is just install it to the main index.php seems to work great.

if(!eregi("admin.php",$_SERVER['PHP_SELF']) AND !is_admin($admin)) {
if (!isset($user)) {
$cachetimeout=900;
} else {
$cachetimeout=-1;
}
require_once("includes/jpcache/jpcache.php");
}

strpos would maybe be faster then eregi dunno why I went with that. Might be a more elegant solution but this will cache those pages.


Does that admin check prevent caching when the user is an admin? I have some sites with cached pages that include the admin blocks which I obviously do not want visible to the public. I then have to FTP to the site and manually delete the cached files. I then reload the page to be cached as a non-admin.

Thanks.
 
View user's profile Send private message
Raven







PostPosted: Mon Nov 08, 2004 1:18 pm Reply with quote

You decide what you want cached. Since admins are the only ones who see the admin block, there is no need to cache it. And the manually ftp'ing and deleting is just one of the things that this module takes care of. You do 100% of everything from nuke.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©