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 6138719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:54:05+00:00 2026-05-23T17:54:05+00:00

I have read a couple of tutorials on several web sites as well as

  • 0

I have read a couple of tutorials on several web sites as well as a few questions here on StackOverFlow about the subject and I still couldn’t find a clear answer to my question.

I am wondering how APC Cache manages/saves the user-specific data (variables that will be used in the php code, that are user-specific. In other words, data that should not be seen by other users.) and how does it save the publicly available data that all users can see?

I am just trying to understand how it works. I know that APC “saves” or keeps in memory required and included files… but what if those included files have user-specific variables in the code? If let’s say in /account/user_profile.php I use several variables like $firstname $lastname $address, etc. will those variables be kept in memory? If, for example, John X is logged in at the time the cache is being updated or saved, then APC will always remember John as $firstname and X as $lastname? If another user goes to the same page, I want him to see its user profile details, not John’s.

I know this might have been discussed already, but I need a clear answer, please.

Thank you!

  • 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-23T17:54:06+00:00Added an answer on May 23, 2026 at 5:54 pm

    You have the false understanding of the APC cache. It’s a bytecode-cache, which means it will store the bytecode of a PHP script. This will save the PHP-interpreter the next time to create the bytecode again from the script because it’s already there.

    Note: Since PHP Version 5.5 it comes with it’s own OPCode Cache Core Extension, named Opcache. Usage of APC for Opcode-Caching is inofficially deprecated. Consult your Sysadmin or Opdesk for detailed information and options, the general principles outlined in this answer still apply regardless of the extensions name.

    In normal PHP execution your scripts code will be taken and compiled into byte-code. This byte-code will then be executed by the php processor. It’s a common pattern for JIT compilers.

    So w/o a bytecode-cache, the bytecode needs to be compiled on each request. With a bytecode-cache, this step needs to be done only once across all requests. Next time the bytecode is already in the cache and can be executed straight-forward.

    This is totally unrelated to variable contents, it’s just for the code.

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

Sidebar

Related Questions

I have read few articles about table partioning but still I am bit confused
I have read a couple of topics about this , however , I still
Hallo, Recently I have read a couple of posts on varous sites and blogs
I have read many answers to questions about dynamically resizing NSWindows and nothing has
I have read some of the questions and answers here, but it none match
I have read several articles/questions/forums discussing the best auto-complete plugin for jQuery. After trying
I have read a few posts about people putting in either their own icons
I just read a couple of tutorials regarding KVO, but I have not yet
I have a couple of questions. I'm trying to learn how to make web
I have read a couple of tutorials and browsed the Solr documentation. But one

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.