简体   繁体   English

贝宝IPN似乎使用了我的PHP处理程序脚本的缓存版本

[英]Paypal IPN seems to use cached versions of my php handler script

Im developing a codeigniter based ipn handler script for my shopping app. 我为我的购物应用程序开发了一个基于codeigniter的ipn处理程序脚本。 It seems that the Paypal sandbox uses cached versions of my response script. 似乎Paypal沙箱使用了我的响应脚本的缓存版本。 I get an Email with the post-values everytime i send an ipn test. 每次发送ipn测试时,都会收到一封包含后值的电子邮件。 I changed the email template like 2 hours ago but the ipn script sends the emails with the old layout. 我像2小时前一样更改了电子邮件模板,但是ipn脚本使用旧布局发送电子邮件。

Thant makes debugging my ipn Variables a pretty bad mess. Thant使调试我的ipn变量变得非常混乱。 I tried setting the header-cache-control to "must-revalidate" but the results appear the same. 我尝试将header-cache-control设置为“ must-revalidate”,但结果看起来相同。

It is just like paypal stores a proxied version of my file and uses it over and over again. 就像贝宝(PayPal)存储文件的代理版本并一遍又一遍地使用它一样。

Do you have any ideas about this issue? 您对此问题有任何想法吗?

If I had to bet, I would bet against this being a caching issue. 如果我必须打赌,我会打赌这是一个缓存问题。 PHP scripts usually don't emit any caching headers (but of course, do make sure to check eg using Firebug), and the purpose of the whole thing would be defeated if PayPal actually listened to such caching instructions. PHP脚本通常不发出任何缓存头(但是,当然,请确保进行检查,例如使用Firebug),并且如果PayPal实际上听了这样的缓存指令,那么整个目的就无法实现。

I would triple- and quadruple-check the URL that PayPal calls to see whether there is a second version of the script hanging around that doesn't get updated - maybe a case of Index.php vs. index.php or something? 我将对PayPal调用的URL进行三重和四重检查,以查看是否存在未更新的第二个脚本版本没有更新-也许是Index.phpindex.php的情况之类? That often is the reason. 这通常是原因。

The only caching culprit I can think of is a reverse proxy on your web server's end. 我能想到的唯一缓存原因是Web服务器端的反向代理。 But you're not mentioning having one, so I'm assuming there is none. 但是您没有提到拥有一个,所以我假设没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM