Version19.208.1

This commit is contained in:
acanas 2020-05-01 19:32:57 +02:00
parent dd4d35928c
commit 378cc4de2f
2 changed files with 4 additions and 3 deletions

View File

@ -544,11 +544,12 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.208 (2020-05-01)"
#define Log_PLATFORM_VERSION "SWAD 19.208.1 (2020-05-01)"
#define CSS_FILE "swad19.193.1.css"
#define JS_FILE "swad19.193.1.js"
/*
Version 19.208: May 01, 2020 Optimization in table of last prefs on user-course. (300598 lines)
Version 19.208.1: May 01, 2020 Fixed bug in cache of figures. (300599 lines)
Version 19.208: May 01, 2020 New module for cache of figures. (300598 lines)
1 change necessary in database:
CREATE TABLE IF NOT EXISTS figures (Figure INT NOT NULL,Scope ENUM('Sys','Cty','Ins','Ctr','Deg','Crs') NOT NULL DEFAULT 'Sys',Cod INT NOT NULL DEFAULT -1,Value INT NOT NULL,LastUpdate TIMESTAMP,UNIQUE INDEX(Figure,Scope,Cod));
If you want to use MyISAM:

View File

@ -103,7 +103,7 @@ bool FigCch_GetFigureFromCache (FigCch_FigureCached_t Figure,
"SELECT Value"
" FROM figures"
" WHERE Figure=%u AND Scope='%s' AND Cod=%ld"
" AND LastUpdate<FROM_UNIXTIME(UNIX_TIMESTAMP()-%lu)",
" AND LastUpdate>FROM_UNIXTIME(UNIX_TIMESTAMP()-%lu)",
(unsigned) Figure,Sco_GetDBStrFromScope (Scope),Cod,
FigCch_TIME_CACHE))
{