[Typo3] caching in extension
Jan Bednarik
info at bednarik.org
Mon Aug 22 22:01:41 CEST 2005
Hi,
> Indexing search do not have anything to do with caching. It _uses_ page
> cache to create index.
I guess, the $subj isn't the best one :)
The thing I need is this: I'm creating an extension to handle list of
files to download (with description, possibility to show a file only to
certain FE users etc.) and I need this file to be cached.
So, I'd need to tell Typo3 - hey, could you index this file for me :).
I've already a solution, but it's not working on 100%.
$this->ind = t3lib_div::makeInstance("tx_indexedsearch_indexer");
$this->ind->pObj = $GLOBALS['TSFE'];
$this->ind->init();
$this->ind->indexRegularDocument($link);
It doesn't cache the file sometimes. Just after a few reloads of the page.
--
Jan Bednarik
More information about the TYPO3-english
mailing list