Best cache configuration

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
Fri Sep 20, 2013 12:28 pm
Reply with quote
Report this post
Hi,

From several weeks I've testing best cache configuration for my site. I tested Joomla cache but I think this is no good solution, at least for me, virtuemart cart not refresh and sometimes I get a blank page.

Using gk cache cart works fine but register not display messages (invalid password, user not exists...) and this is a problem for users. I've done a little fix that works fine for me, in /plugins/system/gavickExtCache/gavickExtCache.php in line 43:

Original
Code: Select all
$options = array(
         'defaultgroup'   => 'page',
         'browsercache'   => false,
         'template_name' => $name,
         'caching'      => false,
         'excluded'       => $pconfig['params']

Changes
Code: Select all
$options = array(
         'defaultgroup'   => 'page',
         'browsercache'   => $this->params->get('browsercache', false),
         'template_name' => $name,
         'caching'      => false,
         'excluded'       => $pconfig['params']

And in line 99:

Original
Code: Select all
function onAfterRender()
   {
      $app = JFactory::getApplication();

      if ($app->isAdmin() || JDEBUG) {
         return;
      }
      
      $user = JFactory::getUser();
      if ($user->get('guest')) {
         //We need to check again here, because auto-login plugins have not been fired before the first aid check
         $this->_cache->store();
      }
   }

Changes
Code: Select all
function onAfterRender()
   {
      $app = JFactory::getApplication();

      if ($app->isAdmin() || JDEBUG) {
         return;
      }
      
      if (count($app->getMessageQueue())) {
         return;
      }

      $user = JFactory::getUser();
      if ($user->get('guest')) {
         //We need to check again here, because auto-login plugins have not been fired before the first aid check
         $this->_cache->store();
      }
   }


In this way register or login works fine and display message. The only problem is with gk cache JCH Optimizer not works fine for js files, only works the first time, when refresh page combined js dissapear and it loads all js files. This problem with native Joomla cache not occur but gk cache is more powerful (in my case around 1 - 1,5 seconds).

Is there any way to fix this?
User avatar
Senior Boarder

GK User
Fri Sep 20, 2013 1:44 pm
Reply with quote
Report this post
The problem exist with default Joomla! cache ?
User avatar
Platinum Boarder

GK User
Fri Sep 20, 2013 3:04 pm
Reply with quote
Report this post
bkrztuk wrote:The problem exist with default Joomla! cache ?


No, with default Joomla cache when a user register or login it displayed messages correctly and JCH Optimizer works fine. The problem with default Joomla cache is less efficient than gk cache and sometimes displays blank pages
User avatar
Senior Boarder

GK User
Mon Sep 23, 2013 9:21 am
Reply with quote
Report this post
The problem with default Joomla cache is less efficient than gk cache and sometimes displays blank pages


The efficiency is exactly the same because the way how it cache works is the same. If you have conflict with 3rd party extension it may be not cache issue but extension problem.
User avatar
Platinum Boarder

GK User
Mon Sep 23, 2013 11:20 am
Reply with quote
Report this post
Hi,

The efficiency is not the same, at least in my case, I've tested with different tools and exists an important difference in load time. Blank pages is a Virtuemart issue, I'm trying to resolve it.

However you don't resolve my doubt, Why JCH Optimizer works with default Joomla cache and doesn't work with gk cache?
User avatar
Senior Boarder

GK User
Wed Sep 25, 2013 10:58 am
Reply with quote
Report this post
JCH Optimizer works with default Joomla cache and doesn't work with gk cache?


Sorry but this is more question to JCH Otpimizer authors, maybe the order or the plugins make the difference, please try to move JCH Otpimize plugin to the top so it will run after template cache.
User avatar
Platinum Boarder

GK User
Wed Sep 25, 2013 12:26 pm
Reply with quote
Report this post
bkrztuk wrote:maybe the order or the plugins make the difference


This was the solution :). I'm trying doing this days ago but I was doing something wrong.

Jch Optimizer support is completely inexistent, many tickets support and not get response but now It's resolve.

I am grateful.
User avatar
Senior Boarder

GK User
Fri Sep 27, 2013 11:19 am
Reply with quote
Report this post
Ok, hope it will be helpful for other members.
User avatar
Platinum Boarder


cron