News:

Wondering if this will always be free?  See why free is better.

Main Menu

redis cache for SMF (predis)

Started by danielrichter, May 15, 2022, 04:21:06 PM

Previous topic - Next topic

spiros

Yes, I get pong in reply :) Maybe you missed the extra edits I made with the other command :)
Yes, I do have different prefix/dB for every instance used.

Thanks again! It is great to see people picking up mods and updating them.

Chen Zhen


It's likely a good idea to also use a different DB# for each WP or SMF installation.
WP's Redis Object Cache uses DB# 0 by default & we put SMF at DB# 15.

The command I gave you with the wildcard "*" checks them all at once.
If you want to check all cached entries with the "non:" prefix, run this command:

redis-cli -s "/home/[USER]/.redis/redis.sock" keys "non:*"

If you only want to flush database # 15, you use this command:
redis-cli -n [15] flushdb

If you only want to flush prefix non: from the cache:
redis-cli --scan --pattern 'non:*' | xargs redis-cli del

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

Advertisement: