Add call to Craft API to ensure revalidation occurs after updating DB
ericdrosas87 opened this issue · comments
ericdrosas87 commented
User story
As the devops engineer of the EDC, I need for the Nextbuilds Craft plugin to send the revalidation request after the DB has been updated such that page revalidation on the client occurs as expected.
Definition of done
I have wrapped the revalidation request in Craft::$app->onAfterRequest(function() { // revalidation });
to ensure the revalidate request is sent after the Craft entry has been updated in the database.