[TYPO3-calendar] cal cache: recache crawler extension

Stephan Helten stephan.helten at engage.de
Wed Aug 17 15:21:23 CEST 2011


Hi list,

 

maybe you remember my last mails about caching.

I have another idea to solve the cache invalidation problem in a more
general way.

I want to implement an extension, that uses the crawler, scheduler and
cachemgm extensions.

 

There is a scheduler task that runs regularly.

When a cal record is changed in the backend a flag in the db is set, that
means: "the cache is invalid".

If this flag is set, the scheduler task collects all possible urls and adds
them to the crawler queue.

I have already written an extension, that provides some simple functions to
insert urls to the crawler queue.

The cachemgm extension makes it possible that a crawler page call
regenerates the cache, without the necessity to clear the cache previously.

So at every time all cal pages were cached!

 

The only problem (for my project) I see, is to calculate all URL parameter
combinations for al possible detail views of all events.

These links are already generated by the list view of cal!

 

One possibility for me is to let cal generate a list (with a template that
only contains the url-Marker) and to parse this list.

It there a more elegant way to get the url combinations?

Can I call some useful cal functions for that?

 

I want to publish this extension!

 

regards

 

Stephan



More information about the TYPO3-project-calendar mailing list