File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ spends 5 seconds to compute data that is cached for 1 hour and this data is acce
9797is fine. But after 1 hour, we get 10 new requests to a cold cache. So the data
9898is computed again. The next second the same thing happens. So the data is computed
9999about 50 times before the cache is warm again. This is where you need stampede
100- prevention
100+ prevention.
101101
102102The first solution is to use locking: only allow one PHP process (on a per-host basis)
103103to compute a specific key at a time. Locking is built-in by default, so
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ Dispatch the Event
328328The :method: `Symfony\\ Component\\ EventDispatcher\\ EventDispatcher::dispatch `
329329method notifies all listeners of the given event. It takes two arguments:
330330the ``Event `` instance to pass to each listener of that event and the name
331- of the event to dispatch and ::
331+ of the event to dispatch::
332332
333333 use Acme\Store\Event\OrderPlacedEvent;
334334 use Acme\Store\Order;
Original file line number Diff line number Diff line change @@ -1212,7 +1212,7 @@ These are the options available:
12121212 Sets the root node name (default: ``response ``).
12131213
12141214``remove_empty_tags ``
1215- If set to true, removes all empty tags in the generated XML.
1215+ If set to true, removes all empty tags in the generated XML (default: `` false ``) .
12161216
12171217Handling Constructor Arguments
12181218------------------------------
Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ place::
615615 // Block the transition "publish" if it is more than 8 PM
616616 // with the message for end user
617617 $explanation = $event->getMetadata('explanation', $eventTransition);
618- $event->addTransitionBlocker(new TransitionBlocker($explanation , 0 ));
618+ $event->addTransitionBlocker(new TransitionBlocker($explanation , '0' ));
619619 }
620620
621621 public static function getSubscribedEvents()
You can’t perform that action at this time.
0 commit comments