|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
It would be really nice if there was an option to include a custom datastore class PHP file so we could do just that (create custom datastores). Something like this in the config.php file: PHP Code: $config['Datastore']['custom_file'] = 'class_datastore_custom.php'; And then in init.php* change this: PHP Code: if ($datastore_class != 'vB_Datastore') { require_once(DIR . '/includes/class_datastore.php'); } to this: PHP Code: if ($datastore_class != 'vB_Datastore') { if ($config['Datastore']['custom_file']) { require_once(DIR . '/includes/' . $config['Datastore']['custom_file']); } else { require_once(DIR . '/includes/class_datastore.php'); } } That would give us infinite flexibility on datastore stuff... for example using the pooling/failover mechanism in memcached without bugging you guys to add it. But there are other scenarios where I could think of why someone would want a totally custom datastore... Maybe you want to do datastore writes to more than 1 memcached server* then handle memcached reads through a hardware load balancer. Or maybe you want to use something like APC* but the storing of keys happening on multiple web servers. It just seems like a *very* easy addition to vBulletin that would allow bigger forums to develop their own custom datastores without the need to hack on PHP files. __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
![]() | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ميموري كارد mp3 لأصحاب ال S-Class و CL- Class | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-05-2010 09:50 AM |
ميموري كارد mp3 G لأصحاب ال S-Class و CL- Class | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-01-2010 05:11 AM |
CMS Datastore in widgets | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 01-22-2010 02:40 AM |
Datastore | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 10-04-2009 02:10 AM |
Custom Database Class | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 09-16-2009 08:00 AM |