- XF 兼容性
- 2.2.x
- Summary
- This add-on product, named "Rebuild post reactions cache," is designed to efficiently manage and remove deleted member reactions in forums by rebuilding the post reaction cache. It can be accessed either through the Admin Control Panel (ACP) or via command line interface (CLI), depending on the number of forum posts, ensuring smooth operation even for large-scale installations.
This add-on product, named "Rebuild post reactions cache," is designed to efficiently manage and remove deleted member reactions in forums by rebuilding the post reaction cache.
Features:
If your forum has less than 100K posts, run from the Admin control panel.
Navigate to the following:
Admin control panel -> Tools -> Rebuild caches -> Rebuilds post reactions cache
Run from CLI:
If your forum has more than 100K posts, run from CLI.
Go to your server terminal
Navigate to the directory your forum is installed in.
Enter the following command:
php cmd.php xf-rebuild:rebuildpostreactionscache
Questions and Answers:
Q: I get a 504 Gateway Timeout.
A: Run from CLI.
Q: Running from CLI how long does it take to process 1M posts?
A: About an hour.
Features:
- Can be run from ACP or as CLI.
- All phrases start with rebuildpostreactionscache_ for your convenience.
If your forum has less than 100K posts, run from the Admin control panel.
Navigate to the following:
Admin control panel -> Tools -> Rebuild caches -> Rebuilds post reactions cache
Run from CLI:
If your forum has more than 100K posts, run from CLI.
Go to your server terminal
Navigate to the directory your forum is installed in.
Enter the following command:
php cmd.php xf-rebuild:rebuildpostreactionscache
Questions and Answers:
Q: I get a 504 Gateway Timeout.
A: Run from CLI.
Q: Running from CLI how long does it take to process 1M posts?
A: About an hour.