PDA

View Full Version : Datastore_Filecache on ramdisk?


Amenadiel
03-15-2008, 01:11 AM
I enabled datastore_filecache, and the file is growing steadily.

I thought "hey, I have tons of free ram, why not mount that directory on a ramdisk?"

So I logged in as root and typed:

mount -osize=20m -t tmpfs vbdatastore /var/www/html/foro/includes/datastore

and then the directory went empty, and empty it stayed until I unmounted the ramdisk, after which the cache file appeared again.

¿Is there a reason for this phenomena?

Dismounted
03-15-2008, 06:10 AM
Have you tried using XCache instead? It's much better than trying to use the filecache.

Marco van Herwaarden
03-15-2008, 08:56 AM
Most likely the permissions where not set correct.

I would not suggest to use a RAM-Disk (unless i am mistaken i assume it gets cleared on a reboot).

Amenadiel
03-16-2008, 04:04 AM
I've tried to use xcache to cache variables without success, that's why I turned over to file based varcache.

How critical is varcache data to risk loosing in a reboot? It's about user preferences and custom settings?

Dismounted
03-16-2008, 06:14 AM
You need to enable XCache support through the config.php file. The class is provided standard as of 3.7.

Amenadiel
03-17-2008, 10:59 AM
Yup, already done that, uploaded a class, etc etc. It just doesn't work.

Perhaps it has something to do with a particular mod.

Dismounted
03-18-2008, 05:06 AM
How are you checking if it is working? As it is working fine on my server.