How to enable alternate php cache?

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
jasondhsd
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Oct 08, 2011 2:41 pm

How to enable alternate php cache?

Post by jasondhsd » Tue Jul 02, 2013 12:45 am

Hi I've been working with my host provider to solve my site's slow loading and they recommended to switch to fast cgi and apc cache. I've read that I'm suppose to go under global configuration > system and change the cache handler from File to Alternative php cache. But I only have File under drop down. How do I get joomla to utilize APC cache? Thanks. Running joomla 2.5.8

PaulPreston
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Sun Jan 30, 2011 12:53 pm
Location: London, UK
Contact:

Re: How to enable alternate php cache?

Post by PaulPreston » Fri Jul 26, 2013 8:18 am

In order to utilise APC you will need to make sure that php-pecl-apc module is installed.

In redhat/centos/fedore simply type "yum install php-pecl-apc.x86_64" (assuming that you are running 64bit OS) and restart apache.
--
Paul Preston - Senior IT Consultant
http://www.proxar.co.uk

Plugje
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 144
Joined: Tue Nov 15, 2011 9:05 pm
Location: Netherlands
Contact:

Re: How to enable alternate php cache?

Post by Plugje » Sat Jul 27, 2013 10:04 am

It looks like it is not installed yet. You can check it in the administration part with going to Site -> System information -> PHP Information. If you don't see APC there it is not installed.

In some cases you have to add it to your website php settings. Mostly you find them in the directory:
[yourdomain]/etc/php5. Look for a file called php.ini.
In this file you can add the following lines at the bottom:

Code: Select all

[APC]
extension=apc.so
Also keep in mind that you probably have to tune APC. You have to do that too in this file. Most important is the file apc.shm_size (amount of memory for APC).

Afterwards you can choose it in the Joomla Cache like you already tried. A warning: Don't change Session Handler there, keep it like it is. Otherwise it will destroy your site.

I can confirm that it makes your site much faster. Only when you change something, don't forget to clear the cache, otherwise you don't see the changes.

Ask your provider to help with installing it.

Good luck :)

Martin

User avatar
SOAMJENA
Joomla! Ace
Joomla! Ace
Posts: 1274
Joined: Thu May 01, 2008 12:36 pm
Location: QubeSys Technologies Pvt. Ltd ,INDIA
Contact:

Re: How to enable alternate php cache?

Post by SOAMJENA » Wed Oct 23, 2013 4:37 am

But where do you enable it in Joomla backend ?
I dont see APC listed anywhere.
Web Design, eCommerce and Software Development
Joomla Premium Extensions,Templates and Support Packages

getimo
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jun 11, 2006 11:04 pm

Re: How to enable alternate php cache?

Post by getimo » Wed Feb 11, 2015 10:54 am

Same problem here. Where can I choose it in the backend?

getimo

User avatar
prem726
Joomla! Intern
Joomla! Intern
Posts: 89
Joined: Sat May 15, 2010 10:27 am
Location: Korat, THAILAND

Re: How to enable alternate php cache?

Post by prem726 » Thu Apr 09, 2015 6:08 pm

Thank you , I looking for this for a long time
I will check it in my websites : www.happykorat.com and www.koodtrat.com
You do not have the required permissions to view the files attached to this post.


Locked

Return to “Performance - Joomla! 2.5”