Thread View: rocksolid.nodes.announce
3 messages
3 total messages
Started by Retro Guy
Fri, 07 Jun 2024 15:22
Disk caching for rslight
Author: Retro Guy
Date: Fri, 07 Jun 2024 15:22
Date: Fri, 07 Jun 2024 15:22
19 lines
1854 bytes
1854 bytes
I've added disk caching in addition to memcache support to rslight. Testing now on www.novabbs.com. The config file now gives the option to choose between using memcached, diskcache or disabling caching. If you are using memcached now, it will be necessary to use the new config file. memcache.inc.php will be ignored in favor of cache.inc.php, where you can select caching method and modify settings. I'm finding that with a ssd, disk caching is faster than memcached. With a real hd, it may not be a good choice. Also, disk space is "cheaper" than ram, so you can have a much larger cache before expiring things. This is still in 'devel', just putting this here in case anyone is interested. -- Retro Guy
Re: Disk caching for rslight
Author: SugarBug
Date: Fri, 07 Jun 2024 17:27
Date: Fri, 07 Jun 2024 17:27
28 lines
2155 bytes
2155 bytes
On Fri, 7 Jun 2024 15:22:36 +0000 Retro Guy <retroguy@novabbs.com> wrote: > I've added disk caching in addition to memcache support to rslight. > Testing now on www.novabbs.com. > > The config file now gives the option to choose between using memcached, > diskcache or disabling caching. > > If you are using memcached now, it will be necessary to use the new > config file. memcache.inc.php will be ignored in favor of cache.inc.php, > where you can select caching method and modify settings. > > I'm finding that with a ssd, disk caching is faster than memcached. With > a real hd, it may not be a good choice. Also, disk space is "cheaper" > than ram, so you can have a much larger cache before expiring things. > > This is still in 'devel', just putting this here in case anyone is > interested. > > -- > Retro Guy I am running rslight servers that will probably never have more than a dozen or two users with a handful of groups. In my use case such optimizations are unnecessary and the present one more layer to troubleshoot if something breaks. Is there a setting to ignore these new caching features? Are they disabled by default or do I need to explicitly set both types of caching to off? -- www.sybershock.com | sci.crypt | alt.sources.crypto | alt.lite.bulb
Re: Disk caching for rslight
Author: Retro Guy
Date: Fri, 07 Jun 2024 18:57
Date: Fri, 07 Jun 2024 18:57
49 lines
2790 bytes
2790 bytes
SugarBug wrote: > On Fri, 7 Jun 2024 15:22:36 +0000 > Retro Guy <retroguy@novabbs.com> wrote: >> I've added disk caching in addition to memcache support to rslight. >> Testing now on www.novabbs.com. >> >> The config file now gives the option to choose between using memcached, >> diskcache or disabling caching. >> >> If you are using memcached now, it will be necessary to use the new >> config file. memcache.inc.php will be ignored in favor of >> cache.inc.php, >> where you can select caching method and modify settings. >> >> I'm finding that with a ssd, disk caching is faster than memcached. >> With >> a real hd, it may not be a good choice. Also, disk space is "cheaper" >> than ram, so you can have a much larger cache before expiring things. >> >> This is still in 'devel', just putting this here in case anyone is >> interested. >> >> -- >> Retro Guy > I am running rslight servers that will probably never have more than a > dozen or two users with a handful of groups. In my use case such > optimizations are unnecessary and the present one more layer to > troubleshoot if something breaks. Is there a setting to ignore these > new > caching features? Are they disabled by default or do I need to > explicitly set both types of caching to off? Caching is disabled by default. You can verify in $config_dir/cache.inc.php: $enable_cache = false; This sets all caching OFF. To enaable: $enable_cache = 'memcached'; or $enable_cache = 'diskcache'; -- Retro Guy
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads