It just popped into my mind.
Right here: https://api.backdropcms.org/api/backdrop/core%21includes%21cache.inc/fun...
static $cache_objects;
if (!isset($cache_objects[$bin])) {
$class = settings_get('cache_class_' . $bin);
if (!isset($class)) {
$class = settings_get('cache_default_class', 'BackdropDatabaseCache');
}
We are using settings_get function to properly direct cache features based on settings.php
But it is really old way and we have better solution - JSON settings!
So how about to keep this data in config('cache.settings') ?
This way cache settings could be easy transferred between different websites.
Also we can ADD admin/settings/cache page and not experienced users will be able to select different (available) methods for different bins.
Related: #716 #1413
Recent comments
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE