Author |
Message |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Sep 18, 2004 1:24 pm |
|
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 Anyway, if you use either of these, successfully, I'd like you to share your experiences and findings. Thanks! |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sat Sep 18, 2004 2:14 pm |
|
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 |
|
|
 |
sixonetonoffun

|
Posted:
Sat Sep 18, 2004 2:16 pm |
|
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

|
Posted:
Sat Sep 18, 2004 2:28 pm |
|
Try it now. That wasn't supposed to happen! |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Sep 19, 2004 8:19 am |
|
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

|
Posted:
Sun Sep 19, 2004 9:58 am |
|
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

|
Posted:
Mon Oct 11, 2004 10:07 pm |
|
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


Joined: Oct 10, 2005
Posts: 20
|
Posted:
Fri Oct 14, 2005 8:51 pm |
|
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? |
|
|
|
 |
Raven

|
Posted:
Fri Oct 14, 2005 9:02 pm |
|
I not only use Cache Lite, but have written a CacheLite Admin module. |
|
|
|
 |
stoney

|
Posted:
Fri Oct 14, 2005 9:05 pm |
|
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

|
Posted:
Fri Oct 14, 2005 10:11 pm |
|
|
|
 |
stoney

|
Posted:
Sat Oct 15, 2005 9:41 am |
|
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

|
Posted:
Sat Oct 15, 2005 10:12 am |
|
ahh friggin safe mode moved the cache dir to sub dir of includes cache lite and it seems to be cacheing now |
|
|
|
 |
stoney

|
Posted:
Sat Oct 15, 2005 10:27 am |
|
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 |
|
|
|
 |
|