mfs caching
| From: | Tom Hensel | Date: | Sat, 13 Oct 2001 13:04:55 +0000 |
| Subject: | mfs caching | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1692@lists.php.net to get a copy of this message | ||
hi,
> I experimented using shared memory with Smarty once. I found this to be
> a big pain and no help from the php mailing list, so I gave it up. If
> you want to use shared memory, let the OS take care of it. Save your
> scripts into /tmp/, I believe Solaris and Linux use shared memory for
> this directory, and it should be world writable.
/tmp is not a memory filesystem as default, at least not on linux/*bsd.
add the following line to your *bsd's /etc/fstab and change the device
to
the systems swap device. reboot or remount /tmp to get it done.
--- cut /etc/fstab ---
/dev/ad0s1b /tmp mfs rw,nosuid,nodev,noatime 0 0
--- cut ---
storing session data etc. on mfs can be a huge security leak
if the directroies/files have unrestricted read/write permissions set.
putting smartys cache directory on mfs works fine for me ;)
bye,
TOM