apc

pecl installs for previous php version

旧街凉风 提交于 2019-12-03 02:46:38
问题 I've upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) version of PHP instead of version 5.4. PHP version: $ php -v PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans Pear $ pear version PEAR Version: 1.9.4 PHP Version: 5

Optimize APC Caching

…衆ロ難τιáo~ 提交于 2019-12-03 02:02:51
问题 here is a link to how my APC is running : [removed] As you can see, it fills up pretty quickly and my Cache Full Count goes over 1000 sometimes My website uses Wordpress. I notice that every time I make a new post or edit a post, 2 things happen. 1) APC Memory "USED" resets 2) I get a whole lot of Fragments I've tried giving more Memory to APC (512 mb) but then it crashes sometimes, it seems 384 is best. I also have a Cron job that restarts apache, clearing all APC of fragments and used

Install APC on Windows

北城余情 提交于 2019-12-02 22:53:02
How can I install APC on Windows? I am using PHP 5.3, Windows 7 x64. I used pecl install apc I got C:\PHP>pecl install apc downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) ............ done: 115,735 bytes 47 source files, building WARNING: php_bin c:\php\php.exe appears to have a suffix \php.exe, but config variable php_suffix does not match running: msdev APC.dsp /MAKE "APC - Release" ERROR: Did not understand the completion status returned from msdev.exe. Installing an extension with the pecl command means : downloading the sources compiling them And,

Magento how to cache a productCollection

耗尽温柔 提交于 2019-12-02 21:19:42
Ive noticed my home page is taking a long time to load - over 6 seconds infact according site24x7.com, so ive been switching elements off to try and determine what is the cause, and it is down to 2 product collection files I have made to show new products and best selling products. As soon as i remove these from the home page, the page loads in less than .5 seconds. So, can anyone help with optimising and caching a productCollection? I have APC installed and running on the server, but Im not sure it is caching the files located in app/design/frontend/default/MY_THEME/catalog/product

PHP APC in CLI mode

谁说胖子不能爱 提交于 2019-12-02 20:35:49
Does APC module in PHP when running in CLI mode support code optimization? For example, when I run a file with php -f <file> will the file be optimized with APC before executing or not? Presuming APC is set to load in config file. Also, will the scripts included with require_once be also optimized? I know optimization works fine when running in fastcgi mode, but I'm wondering if it also works in CLI. apc_* functions work, but I'm wondering about the code optimization, which is the main thing I'm after here. Happy day, Matic The documentation of apc.enable_cli , which control whether APC should

Optimize APC Caching

吃可爱长大的小学妹 提交于 2019-12-02 17:11:29
here is a link to how my APC is running : [removed] As you can see, it fills up pretty quickly and my Cache Full Count goes over 1000 sometimes My website uses Wordpress. I notice that every time I make a new post or edit a post, 2 things happen. 1) APC Memory "USED" resets 2) I get a whole lot of Fragments I've tried giving more Memory to APC (512 mb) but then it crashes sometimes, it seems 384 is best. I also have a Cron job that restarts apache, clearing all APC of fragments and used memory, every 4 hours. Again, my apache crashes if APC is running for a long period of time, I think due to

pecl installs for previous php version

匆匆过客 提交于 2019-12-02 16:20:54
I've upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) version of PHP instead of version 5.4. PHP version: $ php -v PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans Pear $ pear version PEAR Version: 1.9.4 PHP Version: 5.4.17 Zend Engine Version: 2.4.0 Running on: Darwin MBP-retina.local 13.0.0 Darwin Kernel Version 13.0

APC on windows iis 7.0 unstable

隐身守侯 提交于 2019-12-02 09:56:02
问题 I've very unstable IIS, as it always get restarted for some reason it is APC related. The specs of the server is below Intel R Xeon CPU 3GHZ 3GHZ 2GB RAM 64bit APC & Server specification 3.1.7-dev PHP Version 5.3.6 APC Host localhost Server Software Microsoft-IIS/7.5 Shared Memory 1 Segment(s) with 1024.0 MBytes (IPC shared memory, File Locks locking) extension=php_apc.dll apc.shm_size=1024M apc.num_files_hint=10000 apc.user_entries_hint=10000 apc.max_file_size=5M PHP LOG File On Error 28-Jul

APC values randomly disappear

别说谁变了你拦得住时间么 提交于 2019-12-02 09:44:07
问题 I'm using APC for storing a map of class names to class file paths. I build the map like this in my autoload function: $class_paths = apc_fetch('class_paths'); // If the class path is stored in application cache - search finished. if (isset($class_paths[$class])) { return require_once $class_paths[$class]; // Otherwise search in known places } else { // List of places to look for class $paths = array( '/src/', '/modules/', '/libs/', ); // Search directories and store path in cache if found.

APC values randomly disappear

醉酒当歌 提交于 2019-12-02 07:14:59
I'm using APC for storing a map of class names to class file paths. I build the map like this in my autoload function: $class_paths = apc_fetch('class_paths'); // If the class path is stored in application cache - search finished. if (isset($class_paths[$class])) { return require_once $class_paths[$class]; // Otherwise search in known places } else { // List of places to look for class $paths = array( '/src/', '/modules/', '/libs/', ); // Search directories and store path in cache if found. foreach ($paths as $path) { $file = DOC_ROOT . $path . $class . '.php'; if (file_exists($file)) { echo