From: (YOD) <yo...@pn...> - 2005-04-02 19:50:35
|
On Sat, 2 Apr 2005, Reini Urban wrote: > (YOD) schrieb: > > What is global_data? I was cleaning up my database and accidentally > > deleted this. It was the first item in the base and I didn't recognize it. > > Another Wiki I have also has global_data (and I did not remove it (g)).. > > Should that be something I should be concerned about? > > global_data is the one and only special page PhpWiki keeps around to > store/restore its system-wide, not page-specific state. > It should not be deleted, but it causes no critical errors if you > already did. > It could be any other pagename also. (See lib/WikiDB.php:538) > PhpWiki uses the special metatag "__global" in global_data for its > special data. > Every WikiDB::get() - WikiDB::set() call uses this area. > Currently we use it for non-critical values, > the DB _timestamp, plus some global stats. Reini: I tried to reinsert global_data and this is what I got: Error SQL-query : UPDATE `page` SET `pagename` = 'global_data', `pagedata` = 'a:1:{s:8:"__global";a:1:{s:10:"_timestamp";a:2:{i:0;i:1112395452;i:1;i:98;}}}' WHERE `id` = '2892' LIMIT 1 ; MySQL said: #1062 - Duplicate entry 'global_data' for key 2 |