From 4322abb39fe8672ba0179e9a460a73ae65fdfffc Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 22 Jul 2008 10:32:25 +0000 Subject: - add #user_cache.cache_update_time - useful for plugins or the filter when it is not possible/desirable to cache/calculate data specific to the user when pwg core does it; note that this opens the possibility to implement a data cache (file/shared mem/ etc...) for every user (for very large databases) git-svn-id: http://piwigo.org/svn/trunk@2448 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/73-database.php | 46 ++++++++++++++++++++++++++++++++++++++++++++ install/piwigo_structure.sql | 1 + 2 files changed, 47 insertions(+) create mode 100644 install/db/73-database.php (limited to 'install') diff --git a/install/db/73-database.php b/install/db/73-database.php new file mode 100644 index 000000000..c2f43c07d --- /dev/null +++ b/install/db/73-database.php @@ -0,0 +1,46 @@ + diff --git a/install/piwigo_structure.sql b/install/piwigo_structure.sql index aa290149f..5cae5b353 100644 --- a/install/piwigo_structure.sql +++ b/install/piwigo_structure.sql @@ -320,6 +320,7 @@ DROP TABLE IF EXISTS `piwigo_user_cache`; CREATE TABLE `piwigo_user_cache` ( `user_id` smallint(5) NOT NULL default '0', `need_update` enum('true','false') NOT NULL default 'true', + `cache_update_time` integer unsigned NOT NULL default 0, `forbidden_categories` mediumtext, `nb_total_images` mediumint(8) unsigned default NULL, `image_access_type` enum('NOT IN','IN') NOT NULL default 'NOT IN', -- cgit v1.2.3