Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1105731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:40:45+00:00 2026-05-17T01:40:45+00:00

We use the APC user cache in our application, but I’ve started noticing various

  • 0

We use the APC user cache in our application, but I’ve started noticing various problems in our unit tests specifically related to the APC tests.

It seems that eventually APC starts failing to store and retrieve results; while most of the tests continue to run correctly (as they just rebuild data if it’s not recovered from the cache) the tests that specifically test that caches are emptied or repopulated when they should be fail, which is somewhat annoying. The same tests run fine if they are ran in isolation, rather than as part of the whole test suite).

Questions

  • Has anyone else had similar problems? I can’t seem to find much on this through google, aside from problems with the slam_defence setting breaking unit tests (which doesn’t seem to be my problem, as it doesn’t display any error messages for me).
  • Does anyone know how to get more debugging info out of APC? I detect failure by checking the return code of apc_store() and passing the extra success parameter to apc_fetch(), but all I get from that is a boolean success/failure status; no details on which I can follow up on.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:40:46+00:00Added an answer on May 17, 2026 at 1:40 am

    My guess would be that perhaps the cache is full. In your application this is something you should be able to handle (never assume the items exist in cache). I’m not aware of how APC caches or expires stuff, so it is weird that ‘later stuff’ isn’t retained.

    In the case of your unittests, would calling apc_clear_cache(‘user’) for every test work?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I use the apc.filters parameter in APC opcode caching to not cache
I am wondering what other simple-to-use caching mechanisms exist for PHP, except APC cache,
I tried to use PHP APC to upload files on wamp, windows2003. But when
umm... silly question. I know that one can (and should) use APC cache driver
Can a Flex application that was designed for use on a PC be run
Use Case Show a photo uploaded by the user in a square box with
I have recently installed and activated APC cache on a web server (Centos 5.7,
Hey guys I have enabled APC on my VPS but now I can't access
Should I use cache to store arrays that are saved in included files? include(filename.php);..
I am using PHP with APC cache enabled: apc.cache_by_default => On apc.enabled => On

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.