إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 12-29-2009, 07:11 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,669
عدد الـنقاط :3341
 تقييم المستوى : 2140

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__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
ميموري كارد 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


الساعة الآن 05:09 PM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML