Questions tagged [apc]

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

963 questions
0
votes
1 answer

Use APC instead of session in CodeIgniter,is it good way?

I'm developing high traffic web site by CodeIgniter,sessions are stored in database because of security. Is it good way to use apc instead of session to store something like logged in users and other security things?
Moein Hosseini
  • 4,309
  • 15
  • 68
  • 106
0
votes
2 answers

File upload progress bar without APC

I realize this has been asked a few times but I can't find a solution that works for me. Note: my webhost does NOT support APC. Here's what I currently have working: I have an HTML form with a text box to enter some text, and a button to select a…
user1539281
  • 53
  • 1
  • 7
0
votes
2 answers

Questions on using APC and Full Page Cache in Magento

I am currently combing through the Magento Performance White paper to optimize our Magento experience before the start of the holiday season. For 2 months we get heavy traffic spikes and want to make sure we are running smoothly. We are using…
jkphl
  • 181
  • 8
  • 21
0
votes
1 answer

How to make APC cache based on distributed hash tables(like memcache)?

I've read an article about Distributed Hash Tables and seems it's possible to implement such a thing like memcache with APC. As you know APC is much more faster than memcache if we're fetching keys from a single server. So if we make APC distributed…
Alireza
  • 6,497
  • 13
  • 59
  • 132
0
votes
1 answer

php apc.filters to allow only 4 directories

I'm using apc to manage caching and I'm aiming to only cache the files in 4 directories: /home/user6/public_html/beta/ /home/user6/public_html/beta/controller/ /home/user6/public_html/beta/mode/ /home/user6/public_html/beta/templates/ I have tried…
Dan
  • 11,914
  • 14
  • 49
  • 112
0
votes
2 answers

PHP with Apc or Eaccelerator vs Java

I have read many articles saying this, Since java directly runs bytecode and for PHP its loaded and complied on every request, so PHP is slower as compared to Java But what if we use a cache system for PHP like APC or EAccelerator, do the results…
Akash
  • 4,956
  • 11
  • 42
  • 70
0
votes
1 answer

APC (trunk) Install With PHP 5.4 On CentOS

Has anybody successfully installed APC on php 5.4? According to another thread I found on StackOverflow, seems possible using the latest trunk. I grabbed trunk, phpize, ./configure, but when I try and run make I get the following errors: >/bin/sh…
Justin
  • 42,716
  • 77
  • 201
  • 296
0
votes
1 answer

Setting up APC on server with 10 shops running

I am running 10 shops on my server, and have setup APC with the recommended settings in apc.ini. extension = apc.so    #name dependent on your APC cache install   [APC] apc.enabled = 1    # Turn APC cache on apc.optimization  =…
0
votes
1 answer

Symfony 1.4 / Doctrine 1.2 cannot recognize APC extension is loaded

I'm trying to configure APC to work with my Symfony 1.4/Doctrine 1.2 website. I'm currently using WAMP 2.1 and I installed the APC extension successfully. When I do a phpinfo(), I get a description showing that APC is enabled. apc APC Support…
frankp221
  • 175
  • 3
  • 11
0
votes
0 answers

page loads with Random character instead of normal html

I have apc enabled. Nginx used as "reverse proxy". At some point, let's say after a few hours, the page suddenly loads some random non-understandable characters. I checked the error log for both apache and nginx, nothing abnormal. What could be the…
Jürgen Paul
  • 14,299
  • 26
  • 93
  • 133
0
votes
1 answer

APC user-cache large variables with little data vs few variable with huge data

I'm using PHP's APC user-cache to cache some database results, e.a. loading a few smaller tables into APC. The reson I'm doing it is to reduce Mysql load and connections. In my case there is a trade-off: either a few variables each with larger data…
Roland
  • 1
0
votes
2 answers

Is it better to cache to cache the object in the controller or the query in the method?

At the moment I'm using php and apc in my mvc based site, it's a custom built simple mvc so I'm trying to build it to fit my needs. However I'm unsure where is the preferred location in which to handle caching? I have two choices (I think) .. either…
Dan
  • 11,914
  • 14
  • 49
  • 112
0
votes
0 answers

APC won't cache files in zend other that index.php

I installed APC and I'm trying to use it for opcode caching with zend framework. The problem is that the only file that gets cached is index.php My APC config: apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 32M apc.optimization =…
redmoon7777
  • 4,498
  • 1
  • 24
  • 26
0
votes
1 answer

Can't move/fine APC Uploaded file

As a bit of a follow up to Javascript form won't submit (to view the code I am using visit that link) I am now encountering a problem that I cannot find the file that has been uploaded. I have added $files =…
Joshua
  • 1,128
  • 3
  • 17
  • 31
0
votes
1 answer

APC Uptime is very low

Here is my server information : APC Version : 3.1.9 PHP Version : 5.2.17 Server : LiteSpeed PHP : DSO. cPanel : Yes. WHM : Yes. I rarely open my apc.php, i usually open it on my peak traffic, about 3-6 times a day. Most of the time i open it,…
Sempa
  • 308
  • 2
  • 8