Change the download checkbox to a list of 4 options:
1) Leave remote media as remote
2) Download all remote media and limit maximum size to <configured maximum image size setting>
3) Download all remote media smaller than <configured maximum image size setting> and leave the rest as remote
4) Downloa…
Suggested by Chris Graham on 20th February 2019
» Full details and sponsorship (0 comments)
If the stats addon is installed, replace the 'testPageSpeed' test with a log analysis of performance to any of the configured test pages.
If the average page load speed from the logged requests in the stats table (since the last health check) exceeds the configured threshold, the test fails.
If there are…
Suggested by Chris Graham on 22nd February 2019
» Full details and sponsorship (1 comment)
put_into_cache and set_value are both highly trafficed functions that do a query_delete (DELETE FROM) followed by a query_insert (INSERT INTO). These cases could be single REPLACE INTO calls in MySQL.
The ideal solution would be to extend the insert_into method to change $fail_ok to take constants QUERY…
Suggested by Chris Graham on 22nd February 2019
» Full details and sponsorship (3 comments)
Add a new universal block option, the ttl for that block instance's caching.
That ttl value should become a part of the cache signature, so you can have multiple instances of the same block that are now separately cached (necessary for the main_quote block).
Suggested by Chris Graham on 22nd February 2019
» Full details and sponsorship (0 comments)
MySQL 8 made 3 things keywords which we have used for field names:
1) groups
2) path
3) description
This caused some major havoc. We use 'description' a lot.
I tried to fix it in this commit where I added escaping throughout the codebase https://github.com/ocproducts/composr/commit/e07e7bcbf4cccdd…
Suggested by Chris Graham on 25th February 2019
» Full details and sponsorship (0 comments)
Allow importing galleries from an on-disk directory structure, just like we currently support for the downloads system.
Suggested by Chris Graham on 27th February 2019
» Full details and sponsorship (1 comment)
Allow DNS entries, and multiple values, in the backdoor_ip setting.
DNS queries may be better due to dyndns, while users often aren't truly on static IPs, or may want a working backdoor as they move locations. As for security improvement: this is debatable as there are such things as DNS-poisoning attac…
Suggested by Chris Graham on 5th March 2019
» Full details and sponsorship (0 comments)
Implement a number of changes around our use of git to improve communication for people.
Problems being solved (from a human perspective):
i) People currently may struggle to trace issues (especially major bugs or security holes), due to messy commits.
ii) There are no formal changelogs, just messy co…
Suggested by Chris Graham on 12th March 2019
» Full details and sponsorship (5 comments)
Allow configuring a whitelist (series of regexps) specifying what URLs may be static-cached.
This is to preserve disk space, bots may generate lots of invalid URLs and hence fill up the static cache with junk.
Suggested by Chris Graham on 19th March 2019
» Full details and sponsorship (1 comment)
This is a crazy idea, but it would certainly push the limits of Composr and make us eat our own dog food regarding operating at scale.
We could set up Composr to run via very low-power ARM machines, such as this:
https://www.amazon.com/FriendlyElec-NanoPC-T4-Development-Ethernet-Learning/dp/B07F1HH6FZ/…
Suggested by Chris Graham on 20th March 2019
» Full details and sponsorship (4 comments)