E
E
EVOSandru62015-07-30 08:16:55
Yii
EVOSandru6, 2015-07-30 08:16:55

How to install apc on yii?

Good afternoon,
There was a need to increase the performance of an application on the Yii platform with a large number of records in the postgres database. Read in Yii cookbook that you need to install php_apc for better caching
Tried to download from here:
dev.freshsite.pl/php-accelerators/apc.html
And from here:
pecl.php.net/package/apc
Had to sacrifice php 5.6 version in favor of php 5.4 due to the final version of apc (for php 5.4 ). Threw php_apc.dll
( ts) into ext . And registered in php.ini [APC]

apc.enabled=1
apc.shm_segments=1
apc.shm_size=64M
apc.max_file_size=10
apc.stat=1
As stated here:
https://www.youtube.com/watch?v=SGWxVgbslP4
The error is:
Identifier CCacheHttpSession. cacheID is incorrect. Make sure "cache" matches the application's existing cache component.
What have I done wrong? Is it possible for php_apc to work on php 5.6 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melekhovets, 2015-07-30
@EVOSandru6

Opcode caching is built into php5.6, google opcache. You can use APCu to cache data.
And if it slows down there due to a large number of records in the database, then you need not to put phish accelerators, but to place the correct indexes in the database)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question