2 replies [Last post]
wigle's picture
Offline
Joined: 10/01/2009
Juice: 70

Drupal Page caching on the "Normal" setting creates several undesirable side effects.

  • Sometimes clicking a link will (randomly) prompt a download. For example, if the link is to "/store", the download will be for a file called "/store". It can happen in every browser I've tested (FF, IE, Chrome, Opera), so it appears to be some kind of MIME type confusion.
  • Cart block does not update properly for anonymous visitors

I also have some code in my page.tpl.php that checks for login state and cart contents, and this bit has the same problem as the cart block.

<?php if (!$logged_in): ?>
<ul>
<li><a title="User login" href="/user"><?php print 'Login'; ?></a></li>
<?php if (uc_cart_get_contents()): ?><li><a class="zoomcart" href="/cart">My Cart (<?php print(uc_get_cart_qty()); ?>)</a></li><?php endif; ?>
</ul>
<?php else: ?>
<ul>
<li><a title="User profile" href="/user"><?php print_r(strmax(10, $user->name)); ?></a></li>
<?php if (uc_cart_get_contents()): ?><li><a class="zoomcart" href="/cart">My Cart (<?php print(uc_get_cart_qty()); ?>)</a></li><?php endif; ?>
</ul>
<?php endif ?>

According to Google, my average page loading time is 3.5 seconds. My own measurements with the YSlow plug-in are even higher.

Is Drupal page caching supposed to work with Ubercart? If not, what solutions have others used to cache pages in their online stores?

wigle's picture
Offline
Joined: 10/01/2009
Juice: 70
Re: Need a caching solution

To summarize, has anyone gotten Drupal page caching to work with Ubercart?

qrandle's picture
Offline
Joined: 02/16/2009
Juice: 132
Re: Re: Need a caching solution

I would like to know the answer to this question as well. I'm afraid to even turn it on to try it.

Quint