WPIntell

Source evidence

Max cache file size?

SQLite Object Cache · support · 2026-03-09T17:10:00+00:00

mixedsentiment
mediumseverity
0.78relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
DesignStack resolved
Hi there, Great plugin which I use on most websites! I did have an issue today where a file “.ht.object-cache.sqlite-wal” grew to 148GB in size and it took me a while to figure out what was happening. Is there any way of adding a limit to these files? Thanks! Thanks for letting me know about this WAL-file bloat. It can happen on very active web sites where the web server never gets a moment where it isn’t processing some page view or other. I try to mitigate it by randomly doing a checkpoint operation at this code . With a probability of 0.002 I force it. I picked that 0.002 number out of thin air hoping it would be adequate. ( I guess it wasn’t in your case, sorry about that). I could have done the checkpoint operation every so many page views, but I don’t. I use probability here rather than some sort of page view count because I want to avoid any unnecessary writing to either the object cache or the database. The WAL only gets extended if something writes to the cache. You could, from a shell, mitigate this problem by doing this command sqlite3 .ht.object-cache.sqlite 'PRAGMA wal_checkpoint(RESTART)' It locks the database, scans the WAL file, and puts its contents back into the .sqlite file. Please be sure to run the sqlite3 command with the same effective user and group as your web server. I’ll try to dream up a way of making this problem less likely. Thanks for the quick response. I am no coder so won’t be able to help with an idea on the WAL issue unfortunately! But can’t you use the action scheduler? Thanks again. Here’s the ticket. https://github.com/OllieJones/sqlite-object-cache/issues/105 Please try 1.6.2. Will do, thanks.

Comments

5 shown
OllieJones 2026-03-10T13:33:00+00:00

Thanks for letting me know about this WAL-file bloat. It can happen on very active web sites where the web server never gets a moment where it isn’t processing some page view or other. I try to mitigate it by randomly doing a checkpoint operation at this code . With a probability of 0.002 I force it. I picked that 0.002 number out of thin air hoping it would be adequate. ( I guess it wasn’t in your case, sorry about that). I could have done the checkpoint operation every so many page views, but I don’t. I use probability here rather than some sort of page view count because I want to avoid any unnecessary writing to either the object cache or the database. The WAL only gets extended if something writes to the cache. You could, from a shell, mitigate this problem by doing this command sqlite3 .ht.object-cache.sqlite 'PRAGMA wal_checkpoint(RESTART)' It locks the database, scans the WAL file, and puts its contents back into the .sqlite file. Please be sure to run the sqlite3 command with the same effective user and group as your web server. I’ll try to dream up a way of making this problem less likely.

DesignStack 2026-03-10T15:47:00+00:00

Thanks for the quick response. I am no coder so won’t be able to help with an idea on the WAL issue unfortunately! But can’t you use the action scheduler? Thanks again.

OllieJones 2026-03-10T19:46:00+00:00

Here’s the ticket. https://github.com/OllieJones/sqlite-object-cache/issues/105

OllieJones 2026-03-18T13:48:00+00:00

Please try 1.6.2.

DesignStack 2026-03-18T14:41:00+00:00

Will do, thanks.