Thursday, 21 August 2014 20:05
beggarly

Cache for xmap v2

Request new features on Xmap component
Forum rules
This

Cache for xmap v2

Postby nikos13 » Sat Apr 14, 2012 4:27 pm

Hello

I would like to ask if you are planning to implement cache on xmap v.2 for J! 2.5 and if you have an eta on this.
As you know on big sites it is very resource demanding to create the sitemap everytime dynamicaly.

Thanks!
nikos13
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Sat Apr 14, 2012 4:25 pm

Re: Cache for xmap v2

Postby filbar » Fri Sep 28, 2012 10:41 am

Go to components/com_xmap/controller.php and on the line 49 remove text
Code: Select all
$view->display()

and instead of this add
Code: Select all
$cache=JFactory::getCache('com_xmap','view');
$cache->get($view,'display');

Now cache works.
filbar
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Fri Sep 28, 2012 10:39 am


Return to New Features



Who is online

Users browsing this forum: No registered users and 1 guest