XF 2.2 Reactions to the post come very late

pvpers

Member
Hello,
When you leave a reaction to a post, the loading animation that slides from left to right at the top of the screen repeats 4 times and then the reaction is added to the post.
This takes about 3-4 seconds.
What could be causing this? There is no slowness anywhere else on the site.

Thank you.
 
whats your mysql output when hitting like?

"show processlist;"

Releem is a good optization tool for mysql. Redis query caching with Xon helps as well.
 
Then it seems you have multiple addons causing the issue. Are all the addons been fully updated? What addons are reaction related?
There is a Real time alerts plugin but when I disable it the problem does not go away

whats your mysql output when hitting like?

"show processlist;"

Releem is a good optization tool for mysql. Redis query caching with Xon helps as well.
What other plugins should I use besides the Redis Cache plugin?
1741441598497.webp
1741441612970.webp

I don't know anything about MySQL, I don't want to do something wrong.
 
There is a Real time alerts plugin but when I disable it the problem does not go away


What other plugins should I use besides the Redis Cache plugin?
View attachment 319874
View attachment 319875

I don't know anything about MySQL, I don't want to do something wrong.
Releem automates it. As per caching, Litespeed guest caching is good, ive switched recently to cloudflare guest caching with digitalpoints plugin and it works well and its automated in terms of setup for the main guest cache, Just read the FAQ first.
 
I have one last question. Thanks for your time.

When I install the Cloudflare plugin, I will also need to install Redis, right?

If I don't have Redis, will I be missing something?

Because the installation seems difficult for me. I will look for someone to do it.
 
I have one last question. Thanks for your time.

When I install the Cloudflare plugin, I will also need to install Redis, right?

If I don't have Redis, will I be missing something?

Because the installation seems difficult for me. I will look for someone to do it.
depending on your setup, it can be installed fairly simple. You can also use JIT if php 8+.

REDIS:

Code:
cd ~
wget -O redis.tgz https://pecl.php.net/get/redis
tar -xvf redis.tgz
rm -f redis.tgz
cd ~/redis*


/opt/cpanel/ea-php84/root/usr/bin/phpize
./configure --with-php-config=/opt/cpanel/ea-php84/root/usr/bin/php-config
make clean && make install
echo 'extension=redis.so' > /opt/cpanel/ea-php84/root/etc/php.d/redis.ini

Install example for php 8.4, manually. Of course, don't do this in a live environment, use a test environment first.

Redis configuration example; /etc/redis/redis.conf

Code:
maxmemory 64mb
maxmemory-policy allkeys-lru


Jit can be enabled via php.ini as follows;


Code:
opcache.jit=tracing
opcache.jit_buffer_size=128M

To find php.ini ; forum/admin.php?tools/phpinfo >> Loaded Configuration File

I also use the following in config.php with Xon's redis addon

Code:
'serializer' => 'igbinary',

which i can use pecl to install

Code:
/opt/cpanel/ea-php84/root/usr/bin/pecl install igbinary

I may have missed a few things though. You DO NOT need CloudFlare and Redis, they can work seperately. Cloudflare with Digitalpoints addon will use workers for guest page caching. Redis will cache queries which optimizes logged in sessions more so.

Cloudflare > Static
Redis > Logged in dynamic/static

If that make sense.
 
Your CF pages for guest users are still showing "DYNAMIC" meaning its not being cached. Cached = HIT.

1741460854419.webp

Make sure you got the rules setup as per digitalpoints settings/faq on that topic. To check, be private tab, use dev tools > network > pvpers.gg (on left) > headers ..

1741460907980.webp

Check my site:

1741460930196.webp

hit = cached.
 
Your CF pages for guest users are still showing "DYNAMIC" meaning its not being cached. Cached = HIT.

View attachment 319894

Make sure you got the rules setup as per digitalpoints settings/faq on that topic. To check, be private tab, use dev tools > network > pvpers.gg (on left) > headers ..

View attachment 319895

Check my site:

View attachment 319896

hit = cached.
Thank you I provide my controls for the installation.

By the way, should I remove this tick so that Russian IP owners can access the site?
1741461420624.webp
 
Back
Top Bottom