Why not looking up what that button does in /includes/acp/acp_main.php?777Firebrand777 wrote:I have to press purge cache button in ACP
Code: Select all
case 'purge_cache':
...
global $cache;
$cache->purge();
// Clear permissions
$auth->acl_clear_prefetch();
...
break;
What? You can easily create a PHP file which executes all this without any output or input (speak: authentication). And PHP files are scripts, nothing else. Also: what's critical about clearing caches?777Firebrand777 wrote:That actually requires the server to log into the board
is_dynamic
then they will automatically be updatedSorry, I can't program in php, that's why I didn't know that. I just modify other people's work (my index.php modification was also borrowed from a guy's solution)AmigoJack wrote:What? You can easily create a PHP file which executes all this without any output or input (speak: authentication). And PHP files are scripts, nothing else. Also: what's critical about clearing caches?777Firebrand777 wrote:That actually requires the server to log into the board
Would you explain this for me please?david63 wrote:Why not just make the config varsis_dynamic
then they will automatically be updated
Ignore that post - I have no idea how that was supposed to help in any way.777Firebrand777 wrote:Would you explain this for me please?
It's not that different from Perl or shell scripts. Create a PHP file with this content:777Firebrand777 wrote:I can't program in php
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './'; // Relative to your phpBB installation path
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$cache->purge();
$auth->acl_clear_prefetch();
die( 'done' );
wget http://yoursite.ext/thatscript.php
. To execute it locally, change the directory to where that file resides and run php -f thatscript.php
. Tested.I did try this but somehow it didn't work. Maybe it's just me.tmarone wrote:viewtopic.php?f=71&t=1472175 maybe?
This solution is working perfectly for me! My issue is solved. Thank you very much!AmigoJack wrote:Ignore that post - I have no idea how that was supposed to help in any way.777Firebrand777 wrote:Would you explain this for me please?
It's not that different from Perl or shell scripts. Create a PHP file with this content:777Firebrand777 wrote:I can't program in phpIf it's not saved in the root of your phpBB installation adjust the variable where the comment is. To execute the script from the outside runCode: Select all
<?php define('IN_PHPBB', true); $phpbb_root_path = './'; // Relative to your phpBB installation path $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); $cache->purge(); $auth->acl_clear_prefetch(); die( 'done' );
wget http://yoursite.ext/thatscript.php
. To execute it locally, change the directory to where that file resides and runphp -f thatscript.php
. Tested.