Once more: C5 and APC
Permalink 1 user found helpful
Hi everybody,
once again some mysterious things about APC, C5 and speeding up things a little. After searching and bookmarking, reading and learning, I installed multiple C5-Sites on a virtual machine. The VServer is running ubuntu 8.04 and plesk 9.5.4 for domain management etc.
All the sites use a single C5 core by setting aliases in the plesk vhost.conf-files. This is running fine so far, including editing and all other stuff. C5 5.4.1.1 core´s caching features do work fine, too.
Now I wanted to use APC as caching library. APC is installed correctly. I changed the corresponding site.php-files ("define('CACHE_LIBRARY', 'apc'). It works, speeds up, apc.php shows the working apc cache.
BUT: When I am in C5 Dashboard an click on "Sitemap", i get a white screen without any code.
This also affects C5-sites where i did not use apc as cache, but left it on default settings.
In other words: using apc cache shredders my sitemaps in the dashboards! If I switch on the button in the edit bar, I can use the popup sitemap without problems.
I tried to define a cache-id in the site.php, altering the cache.php as suggested by older threads, no effect.
Can anyone help? The speed boost by apc is great, but I cant use it if C5 doesnt work 100%.
Thanks for your answers, have a nice sunday!
Greetings from Germany,
Stefan
once again some mysterious things about APC, C5 and speeding up things a little. After searching and bookmarking, reading and learning, I installed multiple C5-Sites on a virtual machine. The VServer is running ubuntu 8.04 and plesk 9.5.4 for domain management etc.
All the sites use a single C5 core by setting aliases in the plesk vhost.conf-files. This is running fine so far, including editing and all other stuff. C5 5.4.1.1 core´s caching features do work fine, too.
Now I wanted to use APC as caching library. APC is installed correctly. I changed the corresponding site.php-files ("define('CACHE_LIBRARY', 'apc'). It works, speeds up, apc.php shows the working apc cache.
BUT: When I am in C5 Dashboard an click on "Sitemap", i get a white screen without any code.
This also affects C5-sites where i did not use apc as cache, but left it on default settings.
In other words: using apc cache shredders my sitemaps in the dashboards! If I switch on the button in the edit bar, I can use the popup sitemap without problems.
I tried to define a cache-id in the site.php, altering the cache.php as suggested by older threads, no effect.
Can anyone help? The speed boost by apc is great, but I cant use it if C5 doesnt work 100%.
Thanks for your answers, have a nice sunday!
Greetings from Germany,
Stefan
When I installed apc on ubuntu 8.04 using PECL, the default configuration file apc.ini included
By setting that value to 0, all problems disappeard. Concrete is much faster now! Should anyone still have problems using apc with multiple C5-Sites using virtual servers, you should check the apc config in the first place. Maybe this helps anyone.
Greetings,
Stefan