post-checkout hook (purge cache)

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

post-checkout hook (purge cache)

Post by EXreaction »

Just a little git hook to purge phpbb's cache when you switch branches or checkout.

Code: Select all

#!/usr/bin/php
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './phpBB/';
$phpEx = 'php';
include($phpbb_root_path . 'common.' . $phpEx);

$cache->purge();

garbage_collection();
exit_handler();

Post Reply