| |
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا|
#1
| ||
| ||
| How is the cache working? For example i have this code PHP Code: $cacheevents = array( 'output.deleted', 'output.edited' ); if ($data = vB_Cache::instance()->read('output')) { vB_Cache::instance()->event($cacheevents); echo 'data: ' . $data .'data deleted '; #vB_Cache::instance()->cleanNow(); } else { $data = TIMENOW + 100; echo $data; vB_Cache::instance()->write('output', $data, false, $cacheevents); vB_Cache::instance()->cleanNow(); } If i don't have vB_Cache::instance()->cleanNow(); after the event() nothing happens. Is this ok so? Because you have often the event call without the cleanNow method called. Also if i don't have it after the write Method the cache events aren't stored (the cacheevent table is empty)! So do we need to call cleanNow() everywhere? __DEFINE_LIKE_SHARE__ |
| مواقع النشر (المفضلة) |
| |