Article View: rocksolid.nodes.announce
Article #526Re: Disk caching for rslight
From: 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
Technical Details
Message-ID:
<8bbdda61feceb91572210aae76c8dc54@www.novabbs.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mailReferences:
<af5949913baeb50dcb8c02e7e7e9f2b3@www.novabbs.org> <e4c172a1ef645692f5403ab91bcfd200$1@sybershock.com>Show Full Headers
Complete Article Headers
Message-ID: <8bbdda61feceb91572210aae76c8dc54@www.novabbs.org>
Subject: Re: Disk caching for rslight
Date: Fri, 7 Jun 2024 18:57:44 +0000
From: Retro Guy <retroguy@novabbs.com>
References: <af5949913baeb50dcb8c02e7e7e9f2b3@www.novabbs.org> <e4c172a1ef645692f5403ab91bcfd200$1@sybershock.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; logging-data="3491749"; mail-complaints-to="usenet@i2pn2.org"; posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$OtP4D8M4nOojqrMk8pq/luA08jQ/HSCeSXfVd6jILyhExbeUZhJo.
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Lines: 48