Using "longtext" instead of "text" for cache
-
I kept having issues with caching my publications. For things like a short sidebar with 5-10 refs it would work, but not for displaying all of them (~200) in a single chunk on my publication page. I finally figured out that the choice of MySQL data type
textin the mendeleycache table limits the cache to 64k – which apparently wasn’t enough to hold the HTML of some 200 refs.I manually changed this from
texttolongtext, and now everything works just fine.Maybe this should be changed in the next version? Not sure how to auto-upgrade existing tables — I simply changed the
initializeDatabase()function to use thelongtextdata type for thecontentfield, and manually changed the existing table through phpMyAdmin.Hope this helps!
Cheers,
-m
The topic ‘Using "longtext" instead of "text" for cache’ is closed to new replies.