Skip to content

Commit

Permalink
add performance docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen committed Jan 28, 2024
1 parent c1a17c7 commit 77ef32c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/auth/wordpress-user-integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,25 @@ One thing to notice that, after user logs in via the plugin shortcode, the fireb
**Notice**: :red:`Since v3.10.0, username is humanize, and it will be used as WordPress username.`

When users log out from dashboard, that means they will also be logged out to Firebase.

Improve Website Performance
----------------------------------
In version 3.33.0, we made an improvement that helps to improve performance of your website. You can find it under the Auth tab in the plugin configuration.

.. figure:: /images/auth/auth-pages.png
:scale: 70%
:align: center

Auth Pages Option

By default, the authenticate scripts will load in all pages. If you want to load the authenticate scripts only for some specific pages, then you can add the list of the pages to the `auth-pages` field.

Each page will be separated by a new line. Here is an example:

.. code-block:: php
/
/login/
/register/
This configuration will load the script on the homepage, login page and register page. Remember that the `/` is mandatory.
Binary file added docs/images/auth/auth-pages.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Complete Guide to Firebase WordPress Integration
.. meta::
:description lang=en: Guide on how to integrate Firebase to WordPress.

Last updated: Nov 5, 2023
Last updated: Jan 27, 2024

.. raw:: html

Expand Down
8 changes: 8 additions & 0 deletions docs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ CHANGELOG

All notable changes to this project will be documented in this file.

## v2.47.0 (2024-01-27)
----------------------------------

#### - :rocket: [New Feature]

- `PRO - v3.33.0`
- improve performance by only load auth scripts where it's needed

## v2.46.0 (2023-04-29)
----------------------------------

Expand Down

0 comments on commit 77ef32c

Please sign in to comment.