473,382 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1244

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

Similar topics

5
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...
8
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...
8
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...
5
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.