PDA

View Full Version : How to: Turn off caching for Tag Search results?


TWood
05-05-2011, 06:58 PM
The Tag Search results page will cache a user's search of the same term for one hour. I need to set that to zero. Can someone point me in the right direction for that?

Thanks

EDIT:

Over at the vBulletin.com site for vB3.8, there is this thread:

http://www.vbulletin.com/forum/showthread.php/317250-decrease-search-cache-time

Where Jake Bunce (vB Support) said this:

Searches are cached for one hour by default. You can reduce the cache duration by editing this file:

includes/cron/cleanup.php

I've looked in that file for 4.1.3 and don't see a tag search results setting. Has it been moved to another file? I also checked cleanup2, no help.

Lynne
05-10-2011, 04:24 PM
The code is in tags.php around line 149. Just try a plugin using tags_start:
$vbulletin->GPC_exists['nocache'] = true;
$vbulletin->GPC['nocache'] = true;

TWood
05-10-2011, 06:17 PM
Lynne!!!!

You are wonderful!

Thank you SO much.

Tom