Welcome, Guest
Username: Password: Remember me

TOPIC: Coupon download not work with Joomla 2.5 cache

Coupon download not work with Joomla 2.5 cache 7 years 5 months ago #1787

  • edin
  • edin's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
My version of Joomla: latest Joomla 2.5
Php version: any version after php 5.2. Is tested on 3 different servers with php 5.2 and php 5.3.
CMGroupBuying version: latest - CMGroupBuying 2.3.0.

The bug: when Joomla cache is switched on from global configuration, these links not work (coupon download view and coupon print view) :
index.php?option=com_cmgroupbuying&view=coupon&token=...&Itemid=... 

index.php?option=com_cmgroupbuying&view=coupon&download=...&tmpl=component

After switching on cache and clear cache, pages work, but after some time, stop to work.

Please, test again your latest version. Will be good to post here some solution of problem. The problem is with Joomla global configuration cache only, not with system plugin cache (browser cache).
Last Edit: 7 years 5 months ago by edin.
The administrator has disabled public write access.

Coupon download not work with Joomla 2.5 cache 7 years 5 months ago #1789

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
Hi,

You can open components/com_cmgroupbuying/controller.php, search for
        if($viewName != 'cart')
        {
            $cachable = true;
        }

To disable caching for CMGroupBuying, you remove those lines. To disable caching for coupon download, you change them to
        if($viewName != 'cart' && $viewName != 'coupon')
        {
            $cachable = true;
        }

Regards,
Hhung Tran
The administrator has disabled public write access.
The following user(s) said Thank You: edin

Coupon download not work with Joomla 2.5 cache 7 years 5 months ago #1790

  • edin
  • edin's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Thank you, work!
The administrator has disabled public write access.