phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: setup index.php,1.97,1.98


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: setup index.php,1.97,1.98
Date: Sun, 13 Jan 2002 12:20:35 -0500

Update of /cvsroot/phpgroupware/setup
In directory subversions:/tmp/cvs-serv20851

Modified Files:
        index.php 
Log Message:
This will now clear system/user level cache when adding/deleting apps.

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/index.php,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -r1.97 -r1.98
*** index.php   8 Jan 2002 02:12:43 -0000       1.97
--- index.php   13 Jan 2002 17:20:33 -0000      1.98
***************
*** 67,83 ****
  
                /* Add cleaning of app_sessions per skeeter, but with a check 
for the table being there, just in case */
!               $tablenames = @$phpgw_setup->db->table_names();
!               while(list($key,$val) = @each($tablenames))
!               {
!                       $tables[] = $val['table_name'];
!               }
!               if ($phpgw_setup->isinarray('phpgw_app_sessions',$tables))
!               {
!                       $phpgw_setup->db->lock(array('phpgw_app_sessions'));
!                       @$phpgw_setup->db->query("DELETE FROM 
phpgw_app_sessions WHERE sessionid = '0' and loginid = '0' and app = 'phpgwapi' 
and location = 'config'",__LINE__,__FILE__);
!                       @$phpgw_setup->db->query("DELETE FROM 
phpgw_app_sessions WHERE app = 'phpgwapi' and location = 
'phpgw_info_cache'",__LINE__,__FILE__);
!                       $phpgw_setup->db->unlock();
!               }
! 
                exit;
        }
--- 67,71 ----
  
                /* Add cleaning of app_sessions per skeeter, but with a check 
for the table being there, just in case */
!               $phpgw_setup->clear_session_cache();
                exit;
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]