Author |
Message |
Mesum
Useless

Joined: Aug 23, 2002
Posts: 213
Location: Chicago
|
Posted:
Mon Nov 01, 2004 12:15 am |
|
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? |
|
|
|
 |
Mesum

|
Posted:
Mon Nov 01, 2004 12:19 am |
|
I don't know if this helps, avrg daily views are 8426 pages. |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Mon Nov 01, 2004 6:30 am |
|
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 |
|
|
 |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Mon Nov 01, 2004 4:36 pm |
|
I am trying to add cache lite to my system but I keep gettin errorsCode: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! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Nov 01, 2004 4:55 pm |
|
Try putting Cache_Lite folder in your includes folder: includes/Cache_Lite |
|
|
|
 |
Mesum

|
Posted:
Mon Nov 01, 2004 5:21 pm |
|
Raven, you think we can use CacheLite in forums? |
|
|
|
 |
Raven

|
Posted:
Mon Nov 01, 2004 5:25 pm |
|
Yes, you "technically" can use it anywhere, but I have only concentrated on making it work in the blocks. |
|
|
|
 |
Mesum

|
Posted:
Fri Nov 05, 2004 9:51 pm |
|
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


Joined: Jun 04, 2004
Posts: 119
Location: Chicago IL USA
|
Posted:
Mon Nov 08, 2004 1:14 pm |
|
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. |
|
|
|
 |
Raven

|
Posted:
Mon Nov 08, 2004 1:18 pm |
|
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. |
|
|
|
 |
|