mirror of https://github.com/acanas/swad-core.git
Version19.208.1
This commit is contained in:
parent
dd4d35928c
commit
378cc4de2f
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue