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
97
97
is fine. But after 1 hour, we get 10 new requests to a cold cache. So the data
98
98
is computed again. The next second the same thing happens. So the data is computed
99
99
about 50 times before the cache is warm again. This is where you need stampede
100
- prevention
100
+ prevention.
101
101
102
102
The first solution is to use locking: only allow one PHP process (on a per-host basis)
103
103
to 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
328
328
The :method: `Symfony\\ Component\\ EventDispatcher\\ EventDispatcher::dispatch `
329
329
method notifies all listeners of the given event. It takes two arguments:
330
330
the ``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::
332
332
333
333
use Acme\Store\Event\OrderPlacedEvent;
334
334
use Acme\Store\Order;
Original file line number Diff line number Diff line change @@ -1212,7 +1212,7 @@ These are the options available:
1212
1212
Sets the root node name (default: ``response ``).
1213
1213
1214
1214
``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 ``) .
1216
1216
1217
1217
Handling Constructor Arguments
1218
1218
------------------------------
Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ place::
615
615
// Block the transition "publish" if it is more than 8 PM
616
616
// with the message for end user
617
617
$explanation = $event->getMetadata('explanation', $eventTransition);
618
- $event->addTransitionBlocker(new TransitionBlocker($explanation , 0 ));
618
+ $event->addTransitionBlocker(new TransitionBlocker($explanation , '0' ));
619
619
}
620
620
621
621
public static function getSubscribedEvents()
You can’t perform that action at this time.
0 commit comments