0

I recently turned on APC on a site which uses the Rackspace Cloudfiles PHP API library. Yesterday, the uploading process to Cloudfiles failed which I believe is due to an expired token that is being cached by APC. Is there a way to diagnose this issue or should I just prevent all the cloudfiles library code from being cached with the apc.filters configuration?

Edit: I suspected that APC caching was the issue because I updated a relevant file by only adding a single line of code that logged the token. After updating the file, the uploading process started to work again.

Edit2: This was occurring in a background script that is constantly running. The value was being stored in the script and not being updated. I forgot that I had restarted the script after making the change which allowed the token to be updated.

Matt McCormick
  • 13,041
  • 22
  • 75
  • 83

1 Answers1

1

On its own, APC only caches the compiled contents of PHP source files -- it would not (and could not!) cache an API token. Your problem probably lies elsewhere.

  • I see. I think I misunderstood about APC thinking that the variables inside the PHP files are also cached (but that wouldn't make sense and would cause a lot of issues I imagine). – Matt McCormick Feb 14 '13 at 08:04