Zewp.com
Zewp.com
Bbobop.com . Kabij.com . Boss Bot . Antagonist . Theocratica . Pakled . Trump Bot . Christopher Bot . Ava Bot . I Idx . Rnd I

> We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Previous | First | 1 | Last | Next

........................................................................

God
#1 2022-09-29 03:35:52

We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

This is a very down and dirty implementation for now. It took about one hour to implement. Perhaps we will make it better in the future.

Let us know if you see any issues.

........................................................................

Wave from here
#2 2022-09-29 03:44:25

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

I have an issue!

Tom is fun, but RHC and his acolyte AusCarFancier are annoying.

........................................................................

Phillip_McCavity
#3 2022-09-29 03:46:04

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Its full of qanon.

sad

........................................................................

God
#4 2022-09-29 20:54:27

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

We had a small problem where only 16MB of posts could be cached due to a default MariaDB setting. That setting has been increased and we should now see this working more effectively.

........................................................................

Ron_Santo_Redux
#5 2022-09-29 20:56:08

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Issue 1: You suck cock

........................................................................

ALOCHOLIC EARL'S STD
#6 2022-09-29 21:15:32

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Ron_Santo_Redux wrote:

Issue 1: You suck cock

Fuq off, Earl.

........................................................................

#7 2022-09-29 21:17:38

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Issue: pfhildo still has access to mod/admin functions. This should have ceased years ago, it is very damaging to the board and its users. He is clearly psychotic. A cancer. Remove it.

........................................................................

God
#8 2022-09-29 21:18:10

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Okay I have validated that the configuration change has fixed the issue,

........................................................................

#9 2022-09-29 21:29:30

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

10 people and the $100/mo Azure fails or is it your bad coding?


It's not my fault, hundreds of GED holders run websites and have cancer.
\
pig

........................................................................

God
#10 2022-10-02 22:38:56

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Update: cache seems to be working well. Haven't noticed any issues and nobody has reported any. At any given time there are about 1500 posts cached totally about 130MB. Cache hit ratio is north of 98%.

........................................................................

#11 2022-10-02 22:42:41

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Why do you need a post cache? Are all posts loaded separately somehow?

........................................................................

God
#12 2022-10-02 22:49:56

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

wrote:

Why do you need a post cache? Are all posts loaded separately somehow?

Every post has to be processed every single time it is displayed. For example if you have some bold text this will be stored in the DB not as HTML, but as BBCode like this:

Code:

[b]bold text[/b]

Then each time the post is displayed it gets converted to HTML.

So there ends up being a lot of repeated Regex processing on each and every post each and every time it is displayed.

So, now we process them once and store the processed result in the cache.

If an edit happens we invalidate the cache for the edited post. We also have an "age out" process for posts in the cache to accommodate processing rule changes and to keep the cache a reasonable size.

The cache is kept in a MariaDB MEMORY Engine table. It's not as fast as keeping it in Redis or memcache, but makes the implementation a lot easier.

........................................................................

#13 2022-10-02 23:08:09

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

Did you do any profiling?

I'd guess regex would use less resources than the extra cache lookups.

........................................................................

God
#14 2022-10-02 23:39:38

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

wrote:

Did you do any profiling?

I'd guess regex would use less resources than the extra cache lookups.

There isn't an extra lookup. It's part of the same query and then a coalesce for the first non-null between messageParsed and message.

And, yes, it is definitely faster.

Go read an old thread that won't be cached. Look at the page response time in the footer. Then refresh the thread, it will come from the cache, and it will be 30-40% faster.

........................................................................

#15 2022-10-02 23:44:25

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

There's no page response time in the footer.

........................................................................

God
#16 2022-10-03 01:25:39

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

wrote:

There's no page response time in the footer.

Maybe it only shows up for mods.

Let me look.

........................................................................

God
#17 2022-10-03 01:27:16

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

I just confirm that there is. Lower right in old UI. Lower center in new UI.

........................................................................

#18 2022-10-03 01:49:36

Re: We Have Implemented A Post Cache To Improve Performance. Please Report Any Issues.

<div class="block">
    <div class="box">
        <div class="inbox">
            Build: 22.9.28.1214 [camp-idiot-build-master]
        </div>
    </div>
</div>

........................................................................

Previous | First | 1 | Last | Next
Share on Facebook . Share on Twitter  . UP . MUP . Zewg Inc