Archive for the 'WinCache' tag

PHP 5.5, WinCache 1.3.5 available in Azure Web Sites

The recent upgrade of Windows Azure Web Sites includes several PHP related improvements:

First, the PHP 5.5 is now available. The PHP 5.4 becomes the default version used for newly created sites.

Note that there is no SQL Server Extension support for PHP 5.5.
Continue Reading »

2 Comments »

ruslany on December 11th 2013 in PHP, WAWS, WinCache

15,429 views

PoorFairAverageGoodExcellent (2 votes, average: 5.00 out of 5)

Azure Web Sites – WordPress plugin update bug fixed

Windows Azure Web Sites has recently been upgraded to a new version. Among all the improvements and bug fixes in the new version there is one change that fixes a known issue with update of WordPress plugins. There have been numerous questions about this problem at the Azure Web Sites forum. Continue Reading »

4 Comments »

ruslany on March 20th 2013 in PHP, WAWS, WinCache, WordPress

58,569 views

PoorFairAverageGoodExcellent (1 votes, average: 5.00 out of 5)

RuslanY.net running on Windows Azure Web Sites

I have not been writing any blog posts for a while. That was because for the past two years I have been busy working in a team that develops the Windows Azure Web Sites – a scalable web hosting platform in Windows Azure.

Now that the Windows Azure Web Sites (WAWS) is publicly available I decided to try to move my site from private hosting  to Windows Azure. My site uses WordPress (with MySql database), PHP 5.3, WinCache object and user cache, URL rewriting and many WordPress plugins. With all these different technologies (many of which are not developed by Microsoft), I thought it would be a good test of how WAWS is capable of running web sites that use open source technologies. Plus I expect that my site will be more reliable and available, comparing to my previous private hosting.

I was pleasantly surprised that the migration from private hosting to WAWS hosting was relatively quick and simple. The site has been running successfully in a Shared compute mode for a while now and none of the site’s functionality has been lost or altered. In this post I’ll explain the steps I took to move my site to WAWS hosting. Hopefully it will be useful to those who are planning to migrate their WordPress based site to WAWS. Continue Reading »

6 Comments »

ruslany on October 22nd 2012 in PHP, URLRewrite, WAWS, WinCache, WordPress

77,075 views

PoorFairAverageGoodExcellent (2 votes, average: 5.00 out of 5)

WinCache Object Cache plugin for WordPress

The WinCache Object Cache plugin provides a persistent memory-based backend for the WordPress object cache. An object cache is a place for WordPress and WordPress extensions to store the results of complex operations. On subsequent loads, this data can be fetched from the cache, which will be must faster than dynamically generating it on every page load.

The WinCache Object Cache for WordPress is available at the following location:

http://wordpress.org/extend/plugins/wincache-object-cache-backend/

Note: if you use the old version that you have downloaded from blog post about how to Make WordPress faster on IIS with WinCache 1.1, then it is highly recommended to upgrade to the version from wordpress.org.

The plugin is based on the code written by Mark Jaquith for his APC Object Cache WordPress plugin. Thanks to Andrew Nacin for pointing me to that plugin and suggesting to publish similar one for WinCache.

7 Comments »

ruslany on May 8th 2011 in WinCache, WordPress

16,152 views

PoorFairAverageGoodExcellent (4 votes, average: 4.75 out of 5)

WinCache and WordPress plugin upgrade problem

The WinCache extension 1.1 for PHP has been released last year. Since then several customers reported a bug in the extension that prevents WordPress and other PHP applications from performing automatic upgrades of their plugins. This was reported on WordPress forum as well as on WinCache forum.

The new build of WinCache with the fix for this problem is available now at the following location:

https://sourceforge.net/projects/wincache/files/development/

The latest dev build at that location is a release candidate build. Several customers have already verified that this build fixes the problem and is running stable in their environments. Please try it out and let me know if it works or does not work for you. The things to try and to look for are:

  1. Try to auto-upgrade any of the WordPress plugins;
  2. After installing this build check the Windows Application event log from time to time looking for errors caused by module “php_wincache.dll”.

If you see any errors while using this build please let me know by leaving a comment here or in WinCache forum or by opening a bug in PECL bug database.

40 Comments »

ruslany on April 14th 2011 in PHP, WinCache, WordPress

41,684 views

PoorFairAverageGoodExcellent (4 votes, average: 5.00 out of 5)

WinCache Extension 1.1 for PHP – Release to Web

Today IIS team has published the final release of WinCache Extension 1.1 for PHP. This is the latest stable and production ready version of the extension. The v1.1 has all the features available in version 1.0 plus the following features.

  • User Cache API’s can be used by PHP scripts to store PHP objects and variables in shared memory. This way PHP scripts may improve the execution speed by storing processed data in the cache and then using it in subsequent requests instead of re-creating the data on every request.
  • WinCache Session Handler can be used to configure PHP to store the session data in shared memory cache. Using shared memory instead of the default file session storage helps improve performance of PHP applications that store large amount of data in session objects. The content of the WinCache session cache is persisted on disk so that it is not lost during IIS worker process recycling.
  • File Change Notifications – the entries in the opcode and file caches are now updated as soon as the corresponding PHP files are modified on a file system. This is very useful for PHP applications that store its configuration in PHP files – for example Joomla!. Now the configuration changes for those applications take effect right away instead of a 30 seconds delay (default cache refresh interval).
  • Lock/Unlock API’s – these API’s can be used to obtain/release an exclusive lock on a key in the cache.

Install the Windows Cache Extension 1.1 for PHP – RTW

To install the WinCache Extension 1.1 for PHP 5.2 and PHP 5.3, use the download links at the extension’s home page at http://www.iis.net/expand/WinCacheForPhp. Continue Reading »

7 Comments »

ruslany on June 30th 2010 in PHP, WinCache

90,288 views

PoorFairAverageGoodExcellent (7 votes, average: 3.14 out of 5)

WinCache Extension 1.1 for PHP – Beta 2

Today IIS team has published a second beta of WinCache 1.1, which has the following new features and improvements :

  • File Change Notifications – the entries in the opcode and file caches are now updated as soon as the corresponding PHP files are modified on a file system. This is very useful for PHP applications that store its configuration in PHP files – for example Joomla!. Now the configuration changes for those applications take effect right away instead of a 30 seconds delay (default cache refresh interval);
  • Persistent Session Handler – the content of the WinCache session cache is persisted on disk so that it is not lost during IIS worker process recycling.
  • Lock/Unlock API’s – these API’s can be used to obtain/release an exclusive lock on a key in the cache.

The beta builds of the extension can be downloaded and installed from the extension home page at: http://www.iis.net/expand/wincacheforphp (look for the “WinCache 1.1 – Beta 2” section there). The source code can be obtained from http://pecl.php.net/package/WinCache/1.1.0beta2. The documentation for the extension can be found on PHP.NET WinCache documentation.

To learn how to change popular PHP applications to use WinCache 1.1 features refer to the following:

This is the beta release and the WinCache team is looking for your feedback on new features and functionality. Use the WinCache Community Forum to ask questions about the extension, report bugs and problems and to suggest features and improvements.

1 Comment »

ruslany on April 29th 2010 in PHP, WinCache

12,919 views

PoorFairAverageGoodExcellent (5 votes, average: 4.20 out of 5)

Slides and Questions from PHP on Windows Webcast

On April 9, Mark Brown and I did a PHP|Architect webcast “PHP Performance On Windows”. The slides from the presentation have been published at the following link:

PHP Performance on Windows – slides

There were a number of question at the end of the webcast that we did not get to answer due to lack of time. This blog post provides answers to those questions. Continue Reading »

2 Comments »

ruslany on April 13th 2010 in FastCGI, PHP, WinCache

11,825 views

PoorFairAverageGoodExcellent (4 votes, average: 5.00 out of 5)

Make WordPress faster on IIS with WinCache 1.1

This post used to contain PHP code for object-cache.php file. This code has been removed because it is out of date and has bugs. Instead, the latest version of WinCache Object Cache plugin from wordpress.org should be used.

This post explains how to improve performance of WordPress on Windows by using the WinCache Extension 1.1 – Beta for PHP. You probably already know that just by enabling the WinCache extension and without any code changes it is possible to get a significant increase in WordPress performance – this is described in details in PHP on Windows: The WinCache 1.0 Benchmark. But this can be taken even further by using the user cache API’s available in WinCache 1.1 release. Continue Reading »

30 Comments »

ruslany on March 5th 2010 in PHP, WordPress

66,088 views

PoorFairAverageGoodExcellent (4 votes, average: 5.00 out of 5)

More Performance Improvements in WinCache 1.1

Since the WinCache Extension for PHP has been released last year it has been widely deployed by customers who run PHP on Windows OS and it has proven to provide a substantial performance boost for PHP applications hosted on Windows-based web servers.

Today IIS team has published a beta of WinCache 1.1, which provides more options for improving performance of PHP applications on Windows. Specifically, the new version includes :

  • User Cache API’s, that can be used by PHP scripts to store PHP objects and variables in shared memory. This way PHP scripts may improve the execution speed by storing processed data in the cache and then using it in subsequent requests instead of re-creating the data on every request. The addition of these API’s closes the remaining feature gap that WinCache had when compared with other similar caching solutions like APC and XCache.
  • WinCache Session Handler, that can be used to configure PHP to store the session data in shared memory cache. Using shared memory instead of the default file session storage helps improve performance of PHP applications that store large amount of data in session objects.

The beta builds of the extension can be downloaded and installed from the extension home page at: http://www.iis.net/expand/wincacheforphp (look for the “WinCache 1.1 – Beta” section there). The source code can be obtained from http://pecl.php.net/package/WinCache/1.1.0. The documentation for the extension can be found on PHP.NET WinCache documentation.

This is the beta release and the WinCache team is looking for your feedback on new features and functionality. Use the WinCache Community Forum to ask questions about the extension, report bugs and problems and to suggest features and improvements.

2 Comments »

ruslany on March 4th 2010 in PHP

10,082 views

PoorFairAverageGoodExcellent (1 votes, average: 5.00 out of 5)

Recently Published Articles