GK Cache Breaking My Template

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Dec 29, 2013 9:03 pm
Hi,

I am using the Magazine Template
I turn on - System - GK Cache Plugin
I turn on - Use GK Cache - in the Theme Advanced tab
I enable CSS Compression - in the Theme Advanced tab
I enable Javascript Compression - in the Theme Advanced tab

My Theme falls apart.

After reading several other posts on along similar lines I ran the site thru tools.pingdom.com
And it showed me that the following file was created in my cache folder:

http://www.internationallovescout.com/c ... dd.css.php

The site renders correctly for about 20 seconds then it breaks - and when I look in my cache/gk folder the file is not there.

Any idea what is going on here?

Also - am I correct that I should not also have the stock Joomla Caching plugin on when using the GK Cache Plugin?

Thanks
User avatar
Fresh Boarder

GK User
Mon Dec 30, 2013 4:43 pm
Hello,

You can disable the GK Cache plugins on the responsive templates - it is not necessary. It was used only on the non-responsive templates to store different cache for mobile and desktop devices.
User avatar
Administrator

GK User
Mon Dec 30, 2013 6:17 pm
So, how do you recommend that I compress my js and css files - right now the template is loading about 13 css files and 5 js files. That has got to be slowing down my page load times which are VERY important to me.

Thanks
User avatar
Fresh Boarder

GK User
Mon Dec 30, 2013 10:09 pm
You can still have enabled the CSS and JS compression - it is independent from the cache plugins.
User avatar
Administrator

GK User
Wed Jan 01, 2014 7:57 am
I have the following problems when trying to use CSS and JS compression from the template advanced settings:

CSS Compression: When I enable this my template breaks. The problem I am encountering has to do with the fact that this file is throwing a 404 error:
http://www.internationallovescout.com/c ... cc.css.php

This is strange since when I check in file manager the file does exist - the browser is just not able to access it for some reason.
I tried using the stock Joomla .htaccess file and still I get the 404 error

JS Compression: When I enable JS compression it adds 4 seconds to the load time of my site - the site takes 9 seconds to load - most of this time is added to the Time To First Byte.

The strange thing is that this file:
http://www.internationallovescout.com/c ... 539.js.php

does not throw a 404 error even though it is in the same directory as the js file: http://www.internationallovescout.com/c ... cc.css.php

Also, when I turn the css and js caching off the gk directory disappears - is this normal?

My permissions for cache and gk folders are 755

Any idea what's going on here? I really need to get this issue resolved - the site is live and has been using Gavick magazine theme for 2 weeks now and the page load time has gone way up since switching to this template.

Thanks
User avatar
Fresh Boarder

GK User
Thu Jan 02, 2014 9:34 am
In this case I will have to redirect this topic to our developer responsible for the templates maintenance, because it is a very strange case - I didn't saw any similar case.
User avatar
Administrator

GK User
Thu Jan 02, 2014 11:12 am
Please try to disable mod_rewrite and SEF URL's in global Joomla! configuration, maybe the rewrite rules cause this problem because cache still keep old URL's
User avatar
Platinum Boarder

GK User
Thu Jan 02, 2014 3:01 pm
I tried turning all caches and url rewriting off. Also in .htaccess I turned:

RewriteEngine on

to
RewriteEngine off


Also - I contacted my hosting provider - liquidweb in case it was some sort of security issue. Here is their response:
------------------------------
Hello,

It looks like the theme may have been tripping ModSecurity rules. I have
whitelisted the rules that were being tripped by theme. Please test the
caching now and let me know if there are further issues.

If you have any questions or concerns please let me know.

---------------------------------

But unfortunately that did not fix the problem.

Also

Since writing my last update in this thread it would now appear that the css.php file is either not being written at all or it is being deleted immediately. There have been a couple times while experimenting that the file was created and worked for about 10 seconds - but then when I refresh the page the theme breaks again and the css.php file disappears.

Can someone please just take a look at my test site to see what is going on - if this goes on much longer I will just have to go back to my old theme.

I would be happy to send you the login to the front end and backend so you can look for yourself.

Thanks
User avatar
Fresh Boarder

GK User
Thu Jan 02, 2014 3:07 pm
I sent a pm with my login info.

Thanks
User avatar
Fresh Boarder

GK User
Sat Jan 04, 2014 5:27 am
Hi,

Any word on this issue yet? I really need to get this resolved.

Thanks
User avatar
Fresh Boarder

GK User
Sun Jan 05, 2014 3:58 pm
When I've asked you I mean global Joomla! configuration so please make changes there directly from Joomla! administrator panel.
User avatar
Platinum Boarder

GK User
Mon Jan 06, 2014 5:54 am
Your cache configuration is wrong, please look here http://www.gavick.com/documentation/joo ... ce-plugin/ for tutorial how to set up cache properly.


Are you sure you sent me the correct link? That article does not have any information on the Joomla Global Cache. That article is ONLY about the gk cache plugin - which I am not using.
User avatar
Fresh Boarder

GK User
Mon Jan 06, 2014 7:35 pm
Cache is also enabled in your installation - I've checked this yesterday. The wrong cache configuration may be related with your problems so please try firstly configure you installation according to this tutorial or disable cache totally.


This is my configuration in - System - Global Configuration

System:
Cache - On-Progressive
Cache handler - file
Cache time - 15 minutes

Server:
Gzip - Yes

Once again - the article Does not say anything about how to configure the Global cache, so I have no idea why you keep telling me to look at the article. I have now read the article about 10 times and do not see anything in it that will help with my problem.

The only things the article talks about are:
The GK Cache and GK ExtCache plugins
And the "Use GK Cache" in the template settings

1. I am not trying to use the GK Cache system I am only trying to use CSS and JS Compression - I have the GK cache turned off.
2. I am not trying to use the GK Cache or GK ExtCache plugins
3. Joomla 3.2 (which is what I am using) does not even use the GK ExtraCache Plugin

I have tried getting the CSS and JS compression working with ALL caching turned off everywhere on the site including:
1. All caching in the global configurations
2. The stock joomla system cache plugin
3. The "use GK Cache" in the template settings


And still CSS and JS compression DO NOT WORK.

Please feel free to log in to the test site and make any changes you think will get the CSS and JS compression working.
User avatar
Fresh Boarder

GK User
Tue Jan 07, 2014 9:31 am
Global cache should be set to conservative cache. System Cache plugin should be disabled. Are you sure that your configuration is correct?
User avatar
Platinum Boarder

GK User
Tue Jan 07, 2014 12:36 pm
I have tried that configuration before - and I just tried it again. And Still the CSS and JSS compression break the site.

http://ilsimg.com/cache/gk/b1847913c239 ... dd.css.php

That is the problem! Browsers are not able to access that file because it is either not being created or it is getting deleted right away.

I checked with my hosting company - liquidweb and they are confident that there server configuration has nothing to do with the problem.

Here is what happens - I clear my browser cache - I clear the joomla cache.

I browse the site (with CSS and JS compression on) - and the site seems fine - because what is happening is that my browser stores the .css.php file in its own cache. But if I then clear the browser cache - or try to access the site from another browser, the site is broken.

This would imply that the css.php file is indeed being created - but is then instantly being deleted.

So, basically - only the viewer who created the original css.php file can see the site as it is supposed to be - everyone else see a broken site.
User avatar
Fresh Boarder

GK User
Wed Jan 08, 2014 11:49 am
So please disable cache in your website because right now until cache configuration is wrong it is impossible to find out which cause problems - cache or compression engine.
User avatar
Platinum Boarder

GK User
Thu Jan 09, 2014 6:27 am
I have turned off all caching on the site.

I have turned on CSS compression and JS compression.

I PM'd you the login for the test site a week ago. Wouldn't it be much easier if you just logged into the back end of the site and set the various settings to how you want them?

I will PM the login again.

Thanks
User avatar
Fresh Boarder

GK User
Sun Jan 12, 2014 2:20 pm
It's now been 2 weeks since I posted this question. Is someone going to answer it?
User avatar
Fresh Boarder

GK User
Mon Jan 13, 2014 8:58 am
Did you get my PM?

bkrztuk wrote:This is what I see on provided URL screenshot There is no login form so I can't check your backend settings.
User avatar
Platinum Boarder

GK User
Tue Jan 14, 2014 5:16 pm
Yeah - I got the PM and Sent you one back. Did you get it?

Thanks
User avatar
Fresh Boarder

GK User
Thu Jan 16, 2014 10:28 am
I've respond you yesterday for all your messages.
User avatar
Platinum Boarder


cron