PDA

View Full Version : AWS caching



MattM
02-03-2004, 09:04 PM
I have downloaded Cache Lite, and specified the location of Lite.php and the directory to cache, however, I don't see any files in the the caching folder yet. Have I set up everything correctly or does it just take time before it starts caching?

GCT13
02-03-2004, 09:09 PM
Maybe you need to hit "refresh" on your ftp program.

Are your AWS pages working properly?

MattM
02-03-2004, 09:11 PM
Refreshed, nothing.

Yes, fine.

GCT13
02-03-2004, 09:16 PM
That is wild.

Try this. Load a page you haven't loaded yet. After it loads, hit "refresh" on your browser. Did you notice a substantial time improvement? Then it's probably being cached. Where are the cache files? Who knows! :p :D

MattM
02-03-2004, 09:23 PM
Would you consider 1 second a substantial time improvement? That's all I've noticed.

MattM
02-03-2004, 09:38 PM
Ok, seems things are loading faster, however I can't figure out why it isn't showing up in the cache folder.

GCT13
02-03-2004, 09:48 PM
Make sure you have the final slash when you specify the location of the cache directory:

"cacheDir" => "yourcachedirectory/",

MattM
02-04-2004, 05:09 PM
Maybe its my FTP program, I'm using SmartFTP. What extension do the the cache files have?

GCT13
02-04-2004, 05:49 PM
The cache files don't have an extension.

ozgression
02-04-2004, 05:52 PM
Originally posted by GCT13
Make sure you have the final slash when you specify the location of the cache directory:

"cacheDir" => "yourcachedirectory/",

Is it a http:// path or user/dan/public_html/cachedirectory/ filepath?

cheers...
________
Acty (http://www.honda-wiki.org/wiki/Honda_Acty)

MattM
02-04-2004, 07:14 PM
Originally posted by ozgression
Is it a http:// path or user/dan/public_html/cachedirectory/ filepath?

cheers...
Are you asking for where you enter the cache directory?

GCT13
02-04-2004, 07:26 PM
Originally posted by ozgression
Is it a http:// path or user/dan/public_html/cachedirectory/ filepath?enter the path like this-

/the/path/

Don't forget the trailing slash.

MattM
02-04-2004, 07:27 PM
You mean also include /public_html/ ?

MattM
02-04-2004, 07:38 PM
I thought I would list how all the files are set up on my site.

On root level:
AWS files, Lite.php, and a directory named "cache"

In aws-functions and Lite.php, I have /public_html/cache/ as the directory to cache to.

GCT13
02-04-2004, 07:47 PM
Figuring out your root can be tricky. It might not begin with /public_html/

Just put in a guess, if you guess wrong you'll get a php warning which should display your site's full root, you can use that to figure out the paths.

MattM
02-04-2004, 07:51 PM
Actually, it begins with /home/matt/public_html/, do I need to insert home/matt/ also?

GCT13
02-04-2004, 07:58 PM
There you go. Begin with /home/matt/public_html/.... and go from there.

MattM
02-04-2004, 08:02 PM
Ok, I've done this. Haven't noticed anything yet, is it suppose to start immediately?

MattM
02-04-2004, 08:08 PM
Also, which FTP program do you use?

MattM
02-04-2004, 08:33 PM
No wonder it wasn't working, I had not set the CHMOD of the cache directory to 777. Its working now. :)

GCT13
02-04-2004, 09:36 PM
Originally posted by MattM
Also, which FTP program do you use? I use FileZilla (http://filezilla.sourceforge.net/).

Its working now.Fantastic! :)

ozgression
02-05-2004, 07:49 PM
Got mine working too :)
________
Toyota G engine specifications (http://www.toyota-wiki.com/wiki/Toyota_G_engine)

MarkB
02-08-2004, 05:03 AM
Anyone care to offer a step-by-step process of using Caching with AWS? ie, what do you put in which files, etc?

My brain is broken.

Thanks :)

MarkB
02-08-2004, 05:54 AM
Panic over, friends! I am now using jpcache, and it was a dream to use :) The pages are loading MUCH faster once they're cached :)

GCT13
02-08-2004, 10:44 AM
What's jpcache?

chromate
02-08-2004, 10:53 AM
http://www.jpcache.com/

Don't know anything about it myself... but it looks interesting.

MarkB
02-08-2004, 10:53 AM
Basically another caching script similar to what y'all use.

I wrote a *very basic* 'howto' for it this morning after installing it:

http://www.markbridgeman.com/articles/jpcache-howto-tutorial.html


Additional - added it to my AWS site, and Mike's, today - and the pages are flying now (at least compared to what they were earlier)!

Mike
02-08-2004, 11:32 AM
Yup, jpcache is excellent. Big thanks to Mark for helping me install it:)