Remove caching for one page????

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
mickscool
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Wed Jul 11, 2007 3:15 am

Remove caching for one page????

Post by mickscool » Wed Aug 01, 2007 4:10 pm

Hi Friends,
I have cache enabled on my website to improve the performance. But i have a scoreboard rss feed, that i need to refresh every minute. Is it possible to remove that particular page from caching somehow,instead of disabling the cache feature on the whole site???

Thanks
Mick

 
User avatar
Coffeymate
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 178
Joined: Thu Sep 08, 2005 2:41 pm
Location: Atlanta
Contact:

Re: Remove caching for one page????

Post by Coffeymate » Wed Aug 01, 2007 4:47 pm

Only thing I could think of to help with this particular issue would be to create a different template used only for your RSS feed page and put in the meta tag nocache element into the code in the header.
'Never accept compromise of either personal or code integrity'

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Remove caching for one page????

Post by ircmaxell » Wed Aug 01, 2007 6:39 pm

What caching are you talking about?  The core cache?  or a 3pd caching component?  If it's the core cache, there is a way, but it involves hacking the core (not too hard)...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

mickscool
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Wed Jul 11, 2007 3:15 am

Re: Remove caching for one page????

Post by mickscool » Wed Aug 01, 2007 7:59 pm

Thanks Friends,
Yeah, i am talking of the core cache,the one you set under "global configuration -> cache" settings. Can you please share that hack ,I would appreciate that.

Installing a separate theme would be a hard solution i guess...

Thanks

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Remove caching for one page????

Post by ircmaxell » Wed Aug 01, 2007 8:41 pm

Now, this is going back some, but if memory serves correct, you can do it like this...

edit /includes/Cache/Cache.php
You'll see "function save($data..."
change

Code: Select all

        function save($data, $id = NULL, $group = 'default')
        {
                if ($this->_caching) {
To

Code: Select all

        function save($data, $id = NULL, $group = 'default')
        {
               if(strpos($data,'<!--nocache-->') !== false) {
                     $this->_caching = 0;
               }
                if ($this->_caching ) { 
then, create a module with "" in the body, and publish it to any displayed position (Users won't see it)... Then just enable that module on any page you don't want cached...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

mickscool
Joomla! Intern
Joomla! Intern
Posts: 95
Joined: Wed Jul 11, 2007 3:15 am

Re: Remove caching for one page????

Post by mickscool » Wed Aug 01, 2007 10:23 pm

Cool solution..thanks a lot.. realli realli appreciate it...

 

Locked

Return to “General Questions - 1.0.x”