Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Configure wincache? - Correct syntax?

$
0
0

I don't get it, sort of..

I guessing that you set the configuration settings by writing them into the php.ini fil, right?

But what I do not understand is what is the correct syntax to set it up correctly, could some please direct me in the right direction?

Would be very happy for that.

I have been reading the wincache read-me file and http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/use-the-windows-cache-extension-for-php

I understand that the below is what you use to set the settings,but how do you do int correctly in php.ini?

The following table lists and describes the configuration settings provided by the Windows Cache Extension for PHP:

Table 1 : Configuration Settings

Setting

Default

Minimum

Maximum

Changeable

Description

wincache.fcenabled

1 (On)

0 (Off)

1 (On)

PHP_INI_ALL

Enables or disables the file cache functionality.

wincache.fcachesize

24

5

85

PHP_INI_SYSTEM

Defines the maximum memory size (in megabytes) that is allocated for the file cache. If the total size of all the cached files exceeds the value specified in this setting, then most stale files will be removed from the file cache.

wincache.maxfilesize

256

10

2048

PHP_INI_SYSTEM

Defines the maximum allowed size (in kilobytes) for a single file to be cached. If a file size exceeds the specified value, the file will not be cached. This setting applies to the file cache only.

wincache.ocenabled

1 (On)

0 (Off)

1 (On)

PHP_INI_ALL

Enables or disables the opcode cache functionality

wincache.ocachesize

96

15

255

PHP_INI_SYSTEM

Defines the maximum memory size (in megabytes) that is allocated for the opcode cache. If the cached opcode size exceeds the specified value, then most stale opcode will be removed from the cache. Note that the opcode cache size must be at least 3 times bigger than file cache size. If that is not the case the opcode cache size will be automatically increased.

wincache.filecount

4096

1024

16384

PHP_INI_SYSTEM

Defines how many files are expected to be cached by the extension, so that appropriate memory size is allocated at the startup time. If the number of files exceeds the specified value, the Windows Cache Extension for PHP will re-allocate more memory as needed.

wincache.chkinterval

30

2

300

PHP_INI_SYSTEM

Defines how often (in seconds) the Windows Cache Extension for PHP checks for file changes in order to refresh the cache.

wincache.ttlmax

1200

60

7200

PHP_INI_SYSTEM

Defines the maximum time to live (in seconds) for a cached entry without being used.

wincache.ignorelist

no value

no value

no value

PHP_INI_ALL

Defines a list of files that should not be cached by the Windows Cache Extension for PHP. The files list is specified by using file names only, separated by the pipe symbol - "|". For example:

wincache.ignorelist = "index.php|misc.php|admin.php"

wincache.namesalt

no value

no value

no value

PHP_INI_SYSTEM

Defines a string that will be used when naming the cached objects that are stored in shared memory. This is used to avoid conflicts that may be caused if other applications within an IIS worker process try to access shared memory.

It's not easy if you are not a developer or a IT-pro which I'm not..

Thanks in advance! Laughing


Viewing all articles
Browse latest Browse all 7363

Trending Articles