The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security and Performance FAQs
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Aug 11, 2012 9:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 08, 2006 12:46 pm
Posts: 41
Hi,

on my way to fast and efficient Joomla I've encountered another obstacle - cache.

I use XCache on my webserver and it does it's job quite well, so I thought of using it for Joomlas' internal cache. Unfortunately, enabling cache causes many problems with articles - like no new articles showing up (which is logical), hits not being counted properly and content related plugins malfunctioning. The thing is - caching works well for modules on my page.

So, I'm looking for a way to disable caching of com_content (including hits counter) and content type plugins.

Any suggestions or tips on how to achieve that?

P.S.

Joomla documentation states:

Quote:
All cache storages except filecache are broken in Joomla 1.5. Though they are all redirected to the filecache since a certain 1.5 version, there still seem to be some problems with this workaround


Is this still true? Even if so I will try my luck with filecache, but my problems are still valid.


Top
 Profile  
 
PostPosted: Sun Aug 12, 2012 6:47 am 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Aug 11, 2008 3:05 pm
Posts: 459
To disable the global cache for com_content, take a look at the /components/com_content/controller.php and just disable it the same way that's done for a logged in user.
Code:
      // View caching logic -- simple... are we logged in?
//      $user = &JFactory::getUser();
//      if ($user->get('id')) {
         parent::display(false);
//      } else {
//         parent::display(true);
//      }

I use XCache but use filecache for global and page cache, otherwise it would use too much memory.


Top
 Profile  
 
PostPosted: Sun Aug 12, 2012 11:47 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 08, 2006 12:46 pm
Posts: 41
Thanks for the answer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group