RE: [PHP] stripping white space?
| From: | Maxim Maletsky | Date: | Tue, 10 Jul 2001 09:26:57 +0000 |
| Subject: | RE: [PHP] stripping white space? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57116@lists.php.net to get a copy of this message | ||
> /cache/data/articles/0-24/...
> /cache/data/articles/25-50/...
> /cache/data/searches/...
this was our original idea, the difficulty is that there's the need to
access this directory from several places (mod_rewrite, php and postrges).
It is easy to access but might be hard to combine the URL together.
But you're right, on UNIX systems, if I am not wrong, you cannot hold more
then 1024 (?) files in a single directory.
So subfolders is the way to go.
Cheers,
Maxim Maletsky
-----Original Message-----
From: Bart Veldhuizen [mailto:bart@blender.nl]
Sent: Tuesday, July 10, 2001 6:07 PM
To: Maxim Maletsky; php-general@lists.php.net
Subject: Re: [PHP] stripping white space?
Hi Maxim,
> I am definitely interested in seeing your caching modules - it could be a
> useful resource for ours.
> Right now our caching module is only in the planning stage, but there are
> few scratches I wrote myself, and it seems to be very promising.
I'll do my best to write a short blurb on how to use it today and publish
the code. I also have to do a zillion other things (like work on my new
house), so I can't promise it'll actually be there today!
> There's a directory called /cached which we will store the file with the
> exactly same file names (with mod_rewrite there's no need to use any
> ?var=val&etc=etc&, you just get it looking like a directory) so it is
> extremely easy to locate a file.
>
> ie: if you go to a file
>
> articles/2000/10/26/features/doom
>
> then apache looks first into
>
> cached/articles-2000-10-26-features-doom.txt
I can see one problem that you're gonna run into and that is that this
directory will contain thousands of files. Not many OS's can handle that. In
our case, each article has an article ID and the caching module
automatically creates subdirectories that will hold a number of cached
pages. Additionally, I can assign page 'types' to a page. These will
generate new subdirectories as well. My caching directory looks like this:
/cache/data/articles/0-24/...
/cache/data/articles/25-50/...
/cache/data/searches/...
Have fun,
Bart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net