Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient
Author Message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Sep 18, 2004 1:24 pm Reply with quote

I tried Cache-Lite a while back and had some anomalies occur. Pages would cache ok for a while and then parts of the page just disappeared Confused Anyway, if you use either of these, successfully, I'd like you to share your experiences and findings. Thanks!
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Sep 18, 2004 2:14 pm Reply with quote

I've been using jpcache like this in index.php if someones put a better method in place it would sure be interesting to hear from them.
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");
}

And then using cache-lite in block files pretty much as outlined in the nukebook. I did have to edit some blocks (make 2 out of 1) to prevent caching of things like date/time login forms ect.. seemed the easiest route.

_________________
[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
sixonetonoffun







PostPosted: Sat Sep 18, 2004 2:16 pm Reply with quote

lol I'm guessing you have some cache on now because my post won't let me edit index.html to what it should be index.php lol

edit* Guess not must be GT walking on it.


Last edited by sixonetonoffun on Sat Sep 18, 2004 3:50 pm; edited 2 times in total 
Raven







PostPosted: Sat Sep 18, 2004 2:28 pm Reply with quote

Try it now. That wasn't supposed to happen!
 
sixonetonoffun







PostPosted: Sun Sep 19, 2004 8:19 am Reply with quote

I did notice that one of the NSN affiliates (France??) was working on a admin module for jpcache but I haven't gone visiting to see what stage of development its at currently.

This could make it much more appealing to the general public then hacking it in. I think one of the missing features that is needed for wide use is a function to clear the cache. Course its no big deal to ftp the site and clear it out but there are things not mentioned in the nukebook install guide that need to be added like using a htaccess file with a deny from all statement to prevent casual browsing of the cache when its not able to be placed above webroot.
 
Raven







PostPosted: Sun Sep 19, 2004 9:58 am Reply with quote

I'm still reading up that and other caching techniques. I would appreciate a compilation of any other idiosyncrasies that you might have discovered. Thanks!
 
Raven







PostPosted: Mon Oct 11, 2004 10:07 pm Reply with quote

sixonetonoffun wrote:
I did notice that one of the NSN affiliates (France??) was working on a admin module for jpcache but I haven't gone visiting to see what stage of development its at currently.

This could make it much more appealing to the general public then hacking it in. I think one of the missing features that is needed for wide use is a function to clear the cache. Course its no big deal to ftp the site and clear it out but there are things not mentioned in the nukebook install guide that need to be added like using a htaccess file with a deny from all statement to prevent casual browsing of the cache when its not able to be placed above webroot.
To delete a specific cache file use
$cache->remove('cache-file-name','group-name-of-the-file');

To delete all cache files use
$cache->clean('Static');
 
stoney
New Member
New Member



Joined: Oct 10, 2005
Posts: 20

PostPosted: Fri Oct 14, 2005 8:51 pm Reply with quote

So guys.. what was the outcome of this post? I am curious about cacheing but don't really know where to start. Not sure if I will be able to install Pear on my site since i get space at a hosting company.. Which would be the best to use?
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Fri Oct 14, 2005 9:02 pm Reply with quote

I not only use Cache Lite, but have written a CacheLite Admin module.
 
stoney







PostPosted: Fri Oct 14, 2005 9:05 pm Reply with quote

I had seen that. I am not sure if pear is installed on the place i get space from hostforweb. if I read right that is required isnt it?
 
Raven







PostPosted: Fri Oct 14, 2005 10:11 pm Reply with quote

Yes. You can install it yourself too. See this for instructions http://pear.php.net/manual/en/installation.shared.php
 
stoney







PostPosted: Sat Oct 15, 2005 9:41 am Reply with quote

well i installed the cache_lite, installed the module. I cant for the life of me figure out that ftp install instructions for pear. I took the chance that maybee it was already installed but it doesnt apear to be cacheing anything. The admin module isnt updateing. I imagine it is because I didnt install pear but call me stupid... but I cant understand what the hell it says to do. Can you simplify this for me?
 
stoney







PostPosted: Sat Oct 15, 2005 10:12 am Reply with quote

ahh friggin safe mode moved the cache dir to sub dir of includes cache lite and it seems to be cacheing now
 
stoney







PostPosted: Sat Oct 15, 2005 10:27 am Reply with quote

One other thing i just noticed. It appears to be making multiple entries in the table.

block-Advanced_Downloads.php
cacheDir => includes/Cache_Lite/cache/
cache => 1
cacheDir => includes/Cache_Lite/cache/
cache => 1
lifeTime => 300
cache => 1
cacheDir => includes/Cache_Lite/cache/
cache => 1
lifeTime => 300
cache => 1
cacheDir => includes/Cache_Lite/cache/
cache => 1
lifeTime => 300
cache => 1
cacheDir => includes/Cache_Lite/cache/
cache => 1
lifeTime => 300

any idea what is causeing this. I am using 7.8 with patch and sentinel
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient

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 ©