strangerstudios / pmpro-toolkit

Collection of tools for sandbox and development sites running Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/pmpro-toolkit/
7 stars 10 forks source link

Script to clear report transients #22

Open dparker1005 opened 4 years ago

dparker1005 commented 4 years ago

Right now, the easiest way to clear cached report data is to run the pmpro_report_memberships_delete_transients() and pmpro_report_sales_delete_transients() functions. It would be nice to have a script that would clear those transients without needing to run those functions manually.

Also, as written, PMPro reports may show old data when the "Delete All Member Data" script is run for up to 24 hours, even though they should be shown as empty. That script should also clear the report transients after it runs.

MaximilianoRicoTabo commented 2 weeks ago

https://github.com/strangerstudios/pmpro-toolkit/pull/39