Flush Redis from a PHP command?
We have REDIS running and WP-Rocket on this site.
We use WP All Import to sync pricing and stock. At the end of the sync run WP-Rocket is cleared using a purge cache command via a small php snippet. This happens automatically after the import finishes.
Some of the prices shown on the home page seem to be cached causing incorrect prices after a data import.
Is there a way to run the flush cache action via a php command that I could insert at the end of my import?
This would clear the redis database as defined in define(‘WP_REDIS_DATABASE’, 1 );
The page I need help with: [log in to see the link]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس