homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Moving cache files to memory
move files into tmpfs

10+ Year Member

Msg#: 4301801 posted 11:29 am on Apr 21, 2011 (gmt 0)

I recently bumped into a blog post where the person suggested to move the cache files to memory. My website creates cache files in html format and stores them on disk. With this method the folder is moved to memory apparently. It has significantly reduced the memory usage strangely.

Is this correct?

mount -t tmpfs -o size=1G,nr_inodes=10k,mode=0777,noatime,nodiratime tmpfs /path/to/cache/folder



5+ Year Member

Msg#: 4301801 posted 12:08 pm on May 3, 2011 (gmt 0)

I'm doing the same thing too in my /etc/fstab file, one example is:

tmpfs /var/cache/apache2/mod_disk_cache tmpfs defaults,noatime 0 0

Works like a charm for all kinds of temporary files.
A reboot will clear them.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved