How configure Joomla cache?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jul 02, 2013 3:52 pm
Reply with quote
Report this post
Hi

I do not get set properly cache. I've tried all possible configurations and the only way to properly configure the cache has been through .htaccess using the following code:

Code: Select all
<ifmodule mod_expires.c>
 ExpiresActive On
 ExpiresDefault A3600
 <filesmatch ".(jpg|JPG|gif|GIF|png|css|ico|js|swf)$">
  ExpiresDefault "access plus 7 day"
  Header append Vary Accept-Encoding
 </filesmatch>
</ifmodule>


I've been trying configure from Joomla administrator but it's impossible.

I can configure the cache in site/global configuration (conservate caching, progressive caching). I've activated plugin "System - cache", "System - GK Cache", "System - GK Extended cache", one of them, or all three at once. Also I've tried activating gk cache from the template settings. Nothing works.

My server has the ability to enable xcache but nothing works for me. This is very important for me website. Can anybody help me?

Regards.
User avatar
Senior Boarder

GK User
Tue Jul 02, 2013 9:26 pm
Reply with quote
Report this post
Hi,
Nothing works.

Hmm, that's strange, especially when you said that even Joomla cache didn't worked for you.

It's often very easy to check if cache working, check your "cache" folder in Joomla! what is there any folders/files ?
User avatar
Platinum Boarder

GK User
Tue Jul 02, 2013 9:31 pm
Reply with quote
Report this post
You can also use this tips: http://www.askapache.com/htaccess/speed ... ching.html


For example in .htaccess
Code: Select all
# 1 WEEK
<FilesMatch ".(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch ".(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>


:idea: I have very good advice for you, ask your host support which solution works on their servers.
User avatar
Platinum Boarder

GK User
Tue Jul 02, 2013 10:15 pm
Reply with quote
Report this post
Hi Pawel

Thank you for the information.

I asked my host support, they gave me information about cache configuration, very easy: select progressive caching and "Xcache" and activate "System - Cache" plugin. Doing this it looks like cache is working fine but when i tested my website with Firebug, or Page Speed or Gtmetrix cache is not activated. However page load time decreases from 6-7 sec to 3,8 around, it's very strange.

In "cache" folder only appears com_virtuemart.updates.ini, nothing more, but in Joomla administrator Site/Maintenance/clear cache it displays archives cached.

I've tried different codes for .htaccess but none of them work. It's very frustrating, in other websites i activate the cache in few seconds.

My website is www.juguetitossex.es

Thanks a lot and hope i can to fix this.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 1:50 am
Reply with quote
Report this post
Hi.

I've been talking with my hosting support and looks like there is a problem with Xcache and Joomla. I'm looking for information and i have found this:

"Remember that PHP uses reference counting for managing memory. So if you have circular references, or global variables, those objects won't get recycled"

I think this is the problem.

Finally i configure cache activating System - Cache and System - Gk Cache and i have enabled "Use Gk Cache" in template options. Cache works fine but i detected a problem in the pagination of Virtuemart.
download/file.php?mode=view&id=10585
When i go to see a product of one category in page "3" for example, and then i click in category in thumbnails it back to page 1 but it should return to page 3 (when cache is dissable it works fine).
download/file.php?mode=view&id=10584
Also sometimes pagination category not works, i'm trying to see next page but it load the same page (for example, i'm watching page 1 and i click into page 2 but not works, it reload page 1).

Does anyone have any idea that could be happening?

Regards.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 2:00 am
Reply with quote
Report this post
Sorry, when i said "thumbnails" i meant breadcumbs :)
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 4:53 pm
Reply with quote
Report this post
Here an example: http://www.juguetitossex.es/aceites-lub ... es/aceites

If you try to go page 2 it reload page 1... why?

Would be very grateful if someone could help me.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 6:53 pm
Reply with quote
Report this post
Doing this it looks like cache is working fine but when i tested my website with Firebug, or Page Speed or Gtmetrix cache is not activated. However page load time decreases from 6-7 sec to 3,8 around, it's very strange.


I always thought that result is the most important, than its measurement. Why worry.
User avatar
Platinum Boarder

GK User
Mon Jul 08, 2013 6:58 pm
Reply with quote
Report this post
If you try to go page 2 it reload page 1... why?


I don't understand. I clicked on your shop and looks fine.
User avatar
Platinum Boarder

GK User
Mon Jul 08, 2013 7:07 pm
Reply with quote
Report this post
Pawel F wrote:
I always thought that result is the most important, than its measurement. Why worry.


Of course, i'm completely agree with you :)

Now problem is other, breadcums or pagination not works properly SOMETIMES and not always the same link is failing. The above link did not work before but i'm doing tests and deleted the cached items.

You can see the problem here: http://www.juguetitossex.es/divertidos/ ... omestibles

If you try to go page 2 it reload page 1. However if you try go to page 3 it load page 3 properly. Finally, if you see a product of page 3 and back to category using breadcumbs redirect you to page 1. It's a little confused... but any help you can give me will appreciate it greatly.

Regards
User avatar
Senior Boarder


cron