You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
wikicache.json can cache partially built wiki results #113
If someone visits index.php while a wiki is building, the metadata for a partially built wiki may get cached. We could not cache broken wikis, but that would mean we try to evaluate metadata for actually broken wikis on every view.
It's also not great the cache is fully cleared whenever a new wiki is detected. It would be better if we only every wrote to the cache when wikis were created or deleted. Being a single file we also have no concurrency support either.
Also if the setup process fails at any step it should erase any files/databases created up to that point. (Edit: Filed as #114)
Activity
edg2s commentedon Sep 17, 2020
It's also not great the cache is fully cleared whenever a new wiki is detected. It would be better if we only every wrote to the cache when wikis were created or deleted. Being a single file we also have no concurrency support either.
Also if the setup process fails at any step it should erase any files/databases created up to that point. (Edit: Filed as #114)
edg2s commentedon Sep 17, 2020
I think the only way to fix the properly would be to use a real database, maybe SQLite?
WIP Store wiki cache in structured DB instead of flat file
WIP Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file
Store wiki cache in structured DB instead of flat file