Recommended options in the templates settings for cache

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
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
Fri Dec 28, 2012 9:45 am
Hello

We are working presently on a site with the template GKstartup (but we have as well the saqme problem with another site with the template gkfashion)

- in the template configuration , we tried to enable the different options for css and js compression

we would like to know the best option selection to make it work like on the gavick demo site where the js and css seems to be compressed.

at present when turning on css and js compression, the front end css does not seem to be compressed correctly and the page shows without css styling

1. we turned on in the joomla configuration the gzip compression. (is it needed or do we need to turn it off ?)

2. we did the following tests without turning on the cache or gk cache:

- turn on the css cache. works on front end
- turn on the css compression: works on front end
- turn on the js compression: does not work anymore

we get the following errors when turning on the joomla error reporting

Strict Standards: Declaration of GKCacheControllerPage::store() should be compatible with that of JCacheController::store() in Unknown on line 0
Notice: Undefined property: JSite::$registeredurlparams in /home/XXXXX/public_html/new/libraries/joomla/cache/cache.php on line 639

we get the following error on firebug

"NetworkError: 500 Internal Server Error - http://www.domain_name/cache/gk/271eaa4 ... e49.js.php"

we run on Centos. is there any particular cache or modules to be compiled to make it run correctly?

3. when we turn on the gk cache.

we get the same errors as we thought

thank you for your answer.
User avatar
Fresh Boarder

GK User
Fri Dec 28, 2012 3:51 pm
First of all - please update template and cache plugins to latest available version. Then the proper configuration is described here http://www.gavick.com/documentation/joomla-extensions/extensions-for-joomla-1-6/gk-cahce-plugin/ and with this tutorial configuration everything should be working properly.
User avatar
Platinum Boarder

GK User
Sat Dec 29, 2012 7:25 am
Hello bkrztuk

thank you for your email.

We did the steps you recommended , ie downloading the latest version 3.7 for joomla 2.5 of the template startup

(we had already the gkcache plugins in good order)

** however even if we do not enable the gkcache setting and the gkcache plugin, but only enable the css compression and js compression in the template maintenance we get the error.

thus my first question : do you run specifc apache module or enabled specific cache module on your demo server in order to make it work.? apache 2.2.x has compression functionalities and joomla has a gzip setting as well.

this I wanted to see if there was a correct mix to set in order for the gk compression to work correctly

thank you
User avatar
Fresh Boarder

GK User
Sun Dec 30, 2012 9:56 pm
What kind of error you get ? Could you give me more details (maybe screenshot) ?
User avatar
Platinum Boarder

GK User
Mon Dec 31, 2012 9:28 am
?
copy from my first post

we get the following errors when turning on the joomla error reporting

Strict Standards: Declaration of GKCacheControllerPage::store() should be compatible with that of JCacheController::store() in Unknown on line 0
Notice: Undefined property: JSite::$registeredurlparams in /home/XXXXX/public_html/new/libraries/joomla/cache/cache.php on line 639

we get the following error on firebug

"NetworkError: 500 Internal Server Error - http://www.domain_name/cache/gk/271eaa4 ... e49.js.php"

we run on Centos. is there any particular cache or modules to be compiled to make it run correctly?
User avatar
Fresh Boarder

GK User
Wed Jan 02, 2013 10:57 pm
The problem is that in your case the error comes from core Joomla! files not from the template cache.Your templates are up to date ? Please firstly disable Joomla! cache (in global configuration) then enable CSS compression and check whether the problem comes only with CSS compression. This will give us some more details where can be the source of problem.
User avatar
Platinum Boarder

GK User
Tue Jan 22, 2013 8:48 am
Hello,

this is a follow-up question on the cache problem we have.

for the moment, we followed your suggestion not to use the joomla cache but your gk cache.
(even though for us it does not work properly as we are unable to compress css and javascript on your templates on our server. the result being that the css or js is not loaded properly breaking the page.)

but the question now is the following, if we were using the joomla cache , we would be able to clear the cache from specific modules or component using the joomla clear cache like parent::cleanCache('mod_articles_latest') after updating an article

1. Do you have a similar method to call or do we have to build our own to clear the cache generated by gkcache? because at present the cache is no longer cleared for some modules or the component when we update an article using gkcache/gkcacheextended. We have to manually clear the cache from the tools which is not possible for the users as they do not have access to that area.

2. Where is the cache expiring setting for gkcache ? does it take the joomla parameter in the global configuration /Cache Settings/Cache Time ?

I do not see any parameters in the gkcache plugins or the template parameters ?

thank you for your answer
User avatar
Fresh Boarder

Konrad M
Thu Jan 24, 2013 1:36 pm
Hi,
Our gk_cache script is a little modification of default joomla one. So please add your changes to our script. And about second one yes script takes expired time paramtere from joomla.
User avatar


cron