473,799 Members | 3,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble with APC - caches only one file at a time

I'm about to start development on a new project in PHP, which I've
never used before. I got the latest version (5.1.4) installed and
running on my dev/test server, and I tried enabling APC since I'm
definitely going to want to use opcode caching. The apc.php script
runs and indicates that it's caching, but only one file at a time.
Each time I request a different file there's a cache miss, then if I
refresh the browser a few times it gets it from the cache. There's
always only one file in the cache. I can tell it's doing this by
making differently named copies of the apc.php script and requesting
them alternately with refreshes from a browser and looking at the
results, and also by requesting other php files a few times in a row
and seeing the effect on the hits and misses afterward. I can't
imagine that this is the normal behavior, caching only one file at a
time when there's 30MB of cache space available.

I'm running Windows Server 2003 & IIS6 in ISAPI mode, and three 0 byte
apc lock files are being created in the C:\Windows\Temp folder, whether
I add IUSR_* permissions or not. Should it be writing compiled opcode
versions of the php files somewhere, as well as caching them in memory?
It's the only extension I have explicitly enabled in php.ini so far,
does it depend on something non-standard to work properly?

A simple test script that dumps phpinfo() seems to indicate things are
normal and APC is enabled properly, but I'm so new to PHP that I could
easily be missing something.

- Dave

May 18 '06 #1
0 1266

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4245
by: Phil Powell | last post by:
I created a page that will be doing image resizing and manipulation, which seems to work (using GD library). However, upon returning to the page where the image has been changed, I still see the old image, until I refresh my browser and then zappo, there it is! All changed! I have done everything I can think of to force caching including this: // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
8
1506
by: Thorsten Tarrach | last post by:
Hallo, I have a strange problem: ASP.net caches my aspx pages, the code not the output. For testing is created a page and inserted the folowing into the body: <%=now.tostring%> Every time I reload the page the correct date is shown. So far so good. Now I add the following line: <br>test12345
8
1064
by: Thorsten Tarrach | last post by:
Hallo, I have a strange problem: ASP.net caches my aspx pages, the code not the output. For testing is created a page and inserted the folowing into the body: <%=now.tostring%> Every time I reload the page the correct date is shown. So far so good. Now I add the following line: <br>test12345
5
13387
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10238
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.