I have some dynamically generated content that is displayed on pages in the main namespace. The content is updated through a custom special page.
Is there any way to invalidate the cache for the related pages when the content is updated on the special page?
thanks in advance
On 13/04/06, a@kid a@kid632.org wrote:
Is there any way to invalidate the cache for the related pages when the content is updated on the special page?
Update the timestamp in page.page_touched for each affected page:
$dbw =& wfGetDB( DB_MASTER ); $dbw->update( 'page', array( 'page_touched' => $dbw->timestamp() ), array( 'page_id' => $id ) );
where $id is the $id of a single page; or do a fancier update using WHERE page_id IN ( set ) to touch multiple pages.
Rob Church
mediawiki-l@lists.wikimedia.org