The following changes were made by the replace_file_content tool to: /root/aadharbot/modules/pay/services/paymentService.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -947,7 +947,13 @@ } // CRITICAL FIX: Invalidate cache immediately after payment - invalidateUserCache(payment.userId); + if (typeof invalidateUserCache === 'function') { + invalidateUserCache(payment.userId); + } else if (global.helpers && typeof global.helpers.invalidateUserCache === 'function') { + global.helpers.invalidateUserCache(payment.userId); + } else if (userCache) { + userCache.delete(`user_access:${payment.userId}`); + } const planDays = Math.round((planDurations[planType] || 0) / (24 * 60 * 60 * 1000)); const successMsg = isPlanApplied [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.