Skip to content

Commit 84b1794

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Added a mention to the createTable() method of the session handler Remove out-of-context rewrite rule tip Mention cachetool utility to clear OPcache cache from CLI
2 parents 89bcd82 + 579eba0 commit 84b1794

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

components/serializer.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ You are now able to serialize only attributes in the groups you want::
310310
);
311311
// $obj2 = MyObj(foo: 'foo', bar: 'bar')
312312

313-
.. include:: /_includes/_rewrite_rule_tip.rst.inc
314-
315313
.. _ignoring-attributes-when-serializing:
316314

317315
Ignoring Attributes

doctrine/pdo_session_storage.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ a second array argument to ``PdoSessionHandler``:
133133
array('db_table' => 'sessions', 'db_username' => 'myuser', 'db_password' => 'mypassword'),
134134
));
135135
136-
These are parameters that you must configure:
136+
These are parameters that you can configure:
137137

138138
``db_table`` (default ``sessions``):
139139
The name of the session table in your database;
@@ -206,8 +206,18 @@ Preparing the Database to Store Sessions
206206
----------------------------------------
207207

208208
Before storing sessions in the database, you must create the table that stores
209-
the information. The following sections contain some examples of the SQL statements
210-
you may use for your specific database engine.
209+
the information. The session handler provides a method called
210+
:method:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler::createTable`
211+
to set up this table for you according to the database engine used::
212+
213+
try {
214+
$sessionHandlerService->createTable();
215+
} catch (\PDOException $e) {
216+
// the table could not be created for some reason
217+
}
218+
219+
If you prefer to set up the table yourself, these are some examples of the SQL
220+
statements you may use according to your specific database engine.
211221

212222
MySQL
213223
~~~~~

performance.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ using APC and ``opcache_reset()`` when using OPcache).
5555

5656
In PHP, the CLI and the web processes don't share the same OPcache. This
5757
means that you cannot clear the web server OPcache by executing some command
58-
in your terminal. You either need to restart the web server or call the
59-
``apc_clear_cache()`` or ``opcache_reset()`` functions via the web server
60-
(i.e. by having these in a script that you execute over the web).
58+
in your terminal. These are some of the possible solutions:
59+
60+
#. Restart the web server;
61+
#. Call the :phpfunction:`apc_clear_cache` or :phpfunction:`opcache_reset`
62+
functions via the web server (i.e. by having these in a script that
63+
you execute over the web);
64+
#. Use the `cachetool`_ utility to control APC and OPcache from the CLI.
6165

6266
Optimizing all the Files Used by Symfony
6367
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -213,3 +217,4 @@ Learn more
213217
.. _`APCu PHP functions`: http://php.net/manual/en/ref.apcu.php
214218
.. _`autoload.php`: https://github.com/symfony/symfony-standard/blob/master/app/autoload.php
215219
.. _`bootstrap file`: https://github.com/sensiolabs/SensioDistributionBundle/blob/master/Composer/ScriptHandler.php
220+
.. _`cachetool`: https://github.com/gordalina/cachetool

0 commit comments

Comments
 (0)